1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3066],{18705:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/donations/success",function(){return a(25057)}])},77098:function(e,t,a){"use strict";var n=a(33836),s=a(67294),r=a(11163),l=a(70658);t.Z=function(){let{middleware:e,redirectIfAuthenticated:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{middleware:"guest"},a=(0,r.useRouter)(),{data:i,error:c,isLoading:o,isValidating:u,mutate:d}=(0,n.u)("/api/user",()=>l.Z.get("/api/user").then(e=>e.data).catch(e=>{if(409!==e.response.status)throw e;a.push("/dashboard")})),csrf=()=>l.Z.get("/sanctum/csrf-cookie"),register=async e=>{let{onSuccess:t,onError:n,data:s}=e;try{await csrf(),await l.Z.post("/register",s),d();let{query:e}=a,{redirectTo:n}=e;t(n)}catch(e){var r;if(422!==e.response.status)throw e;n(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.data)}},login=async e=>{let{onSuccess:t,onError:n,...s}=e;try{await csrf(),await l.Z.post("/login",s),d();let{query:e}=a,{redirectTo:n}=e;t(n)}catch(e){var r;n(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.data)}},forgotPassword=async e=>{let{onError:t,onSuccess:a,email:n}=e;try{await csrf();let{data:e}=await l.Z.post("/forgot-password",{email:n});a(e.status)}catch(e){t(e.response.data)}},resetPassword=async e=>{let{onError:t,onSuccess:n,...s}=e;try{await csrf();let{data:e}=await l.Z.post("/reset-password",{token:a.query.token,...s});a.push("/login?reset="+btoa(e.status))}catch(e){t(e.response.data)}},resendEmailVerification=async e=>{let{onSuccess:t,onError:a}=e;try{let{data:e}=await l.Z.post("/email/verification-notification");t(e)}catch(e){var n;a(null===(n=e.response)||void 0===n?void 0:n.data)}},f=(0,s.useCallback)(async()=>{c||await l.Z.post("/logout").then(()=>d()),a.push("/login")},[c,d]),createPassword=async e=>{let{onSuccess:t,onError:a,data:n}=e;try{await csrf(),await l.Z.put("/api/user/password",n),d(),t()}catch(e){var s;if(422!==e.response.status)throw e;a(null===(s=e.response)||void 0===s?void 0:s.data)}};return(0,s.useEffect)(()=>{(null==i?void 0:i.locale)&&i.locale!==a.locale&&a.push(a.asPath,void 0,{locale:i.locale,scroll:!1})},[null==i?void 0:i.locale]),(0,s.useEffect)(()=>{"guest"===e&&t&&i&&a.push(t),"/verify-email"===window.location.pathname&&(null==i?void 0:i.email_verified_at)&&a.push(t),"auth"===e&&!u&&c&&(d(void 0,{revalidate:!1}),a.push("/login?redirectTo=".concat(encodeURIComponent(a.asPath))))},[i,c,u,d,f,e,t,a]),{csrf,user:i,isLoading:o,register,login,forgotPassword,resetPassword,createPassword,resendEmailVerification,logout:f,mutate:d}}},1611:function(e,t,a){"use strict";a.d(t,{Y:function(){return useInView}});var n=a(67294);function useInView(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px 0px 150px 0px",a=(0,n.useRef)(null),[s,r]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let n=a.current;if(!n)return;let s=n.getBoundingClientRect();if(s.top<window.innerHeight&&s.bottom>0){r(!0),i(!0);return}i(!0);let l=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(r(!0),l.disconnect())},{threshold:e,rootMargin:t});return l.observe(n),()=>l.disconnect()},[e,t]),{ref:a,inView:!l||s}}},98693:function(e,t,a){"use strict";var n=a(33836),s=a(70658);t.Z=function(){let{enabled:e=!0,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e?["/api/localities",t]:null,{data:r,error:l,mutate:i}=(0,n.u)(a,()=>s.Z.get("/api/localities",{params:t}).then(e=>e.data));return{localities:r,mutate:i,isLoading:e&&!l&&!r,isError:l}}},70658:function(e,t,a){"use strict";var n=a(9669),s=a.n(n);let{hostname:r}=new URL("https://api.localinvitation.com"),l=s().create({baseURL:"https://api.localinvitation.com",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},withCredentials:!0});l.interceptors.request.use(e=>{if("undefined"!=typeof document){let t=document.documentElement.lang;t&&(e.headers["X-Locale"]=t)}return e}),t.Z=l},25057:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return m}});var n=a(85893),s=a(2962),r=a(11163),l=a(9600),i=a(35063),c=a.n(i),o=a(32543),u=a(70658),d=a(33836),f=a(67294),p=a(91407);let fetcher=e=>u.Z.get(e).then(e=>e.data);var m=!0;t.default=()=>{var e;let t=(0,r.useRouter)(),{t:a}=(0,l.$G)("donations"),{session_id:i}=t.query,{trackDonateCompleted:u}=(0,p.ox)(),m=(0,f.useRef)(!1),{data:h,isLoading:v}=(0,d.u)(i?"/api/donations/session/".concat(i):null,fetcher,{refreshInterval:e=>e?0:2e3,errorRetryCount:5});(0,f.useEffect)(()=>{h&&!m.current&&(m.current=!0,u({amount:h.amount,currency:h.currency_code,eventTitle:h.event_listing.title,eventId:h.event_listing.id,donationId:h.id}))},[h]);let g=(null==h?void 0:h.currency_code)&&null!==(e=({usd:"$",eur:"â¬",gbp:"\xa3",cad:"$",aud:"$"})[h.currency_code.toLowerCase()])&&void 0!==e?e:"$",w=h?"".concat(g).concat((h.amount/100).toFixed(2)):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.PB,{noindex:!0}),(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center px-4",children:(0,n.jsx)("div",{className:"max-w-md w-full flex flex-col items-center gap-6 text-center",children:v||!h?(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,n.jsx)("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent roun
1ded-full animate-spin"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:a("success.loading")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.f,{size:64,className:"text-primary",weight:"fill"}),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("h1",{className:"text-2xl font-semibold",children:a("success.title")}),w&&(0,n.jsx)("p",{className:"text-muted-foreground",children:a("success.subtitle",{amount:w,event:h.event_listing.title})})]}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:a("success.impact")}),(0,n.jsx)(c(),{href:"/events/".concat(h.event_listing.slug),className:"btn primary px-6",children:a("success.viewEvent")})]})})})]})}},32543:function(e,t,a){"use strict";a.d(t,{f:function(){return i},r:function(){return l}});var n=a(67294),s=a(27589);let r=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),l=n.forwardRef((e,t)=>n.createElement(s.Z,{ref:t,...e,weights:r}));l.displayName="CheckCircleIcon";let i=l}},function(e){e.O(0,[4163,9669,1664,1407,9774,2888,179],function(){return e(e.s=18705)}),_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.