PageSourceSearch

https://screening.triumphoftheheart.com/assets/index-DBR9B2dg.js

js triumphoftheheart.com collected 2026-09-25 20:10:24 UTC 6,885 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`da86e5a790ffce7d6549f3aeec10b934acc7a606-dirty`}}catch{}})();import{D as e,N as t,j as n,t as r,z as i}from"./jsx-runtime-CVnPtKBq.js";import{r as a}from"./chunk-RJYABSBD-PerHHaxc.js";import{c as o}from"./clerk-B0TtVmgL.js";import{l as s,n as c,s as l}from"./client-DVFyi2dg.js";import{a as u,c as d,f,g as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b,u as x,v as S,y as C}from"./zod-B2vNDhp_.js";import{t as w}from"./AllMeta-8EmNUFcM.js";import{t as T}from"./button-D9oTyZf_.js";import{r as E}from"./utils-BI96MV59.js";import{n as D}from"./currency-D8w5v9A2.js";import{t as O}from"./stripe-CIDwA2Ik.js";import{t as k}from"./styles-CpNj6PMO.js";import{n as A,r as j,t as M}from"./checkout.esm-CmVXEM-z.js";import{t as N}from"./phone-n1B9pfWV.js";var P=i(r(),1),F=S({name:C().optional(),email:p({message:`Invalid email address`}),phone:N(),preferredGroup:C().optional()});async function I(t){let n=E(t.request,`amount`);if(!n)throw e(a(`/screening`));let r=parseInt(n,10);if(isNaN(r)||r<=0)throw e(a(`/screening`));let{data:i,error:s}=await l({client:c,body:{amount:r}});return o(i,`publicClientLoader ensures data is set`),{amount:r,...i}}var L=t(function({loaderData:e}){let{stripePromise:t}=n(),{amount:r,client_secret:i}=e;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(w,{basic:{title:`Give Forward - Support Free Tickets`,description:`Contribute to provide free tickets for students, missionaries, and religious`},"data-sentry-element":`AllMeta`,"data-sentry-source-file":`index.tsx`}),(0,P.jsx)(`section`,{className:`bg-background flex min-h-[70vh] w-full flex-col items-center px-2 py-16`,children:(0,P.jsxs)(`div`,{className:`mx-auto w-full max-w-md`,children:[(0,P.jsxs)(`div`,{className:`prose prose-sm my-2`,children:[(0,P.jsx)(`h1`,{className:`toth-serif-font text-center text-4xl font-normal`,children:`Give Forward Checkout`}),(0,P.jsx)(`p`,{children:`Funds contributed to our Give Forward pool will be used to book screenings for priests, seminarians, students, missionaries, and religious.`}),(0,P.jsx)(`p`,{children:`Every contribution to our Give Forward pool will receive:`}),(0,P.jsxs)(`ol`,{children:[(0,P.jsx)(`li`,{children:`One-time streaming access to the film after our theatrical release`}),(0,P.jsx)(`li`,{children:`One entry to our grand prize raffle`})]})]}),(0,P.jsx)(M,{stripe:t,options:{clientSecret:i},"data-sentry-element":`CheckoutElementsProvider`,"data-sentry-source-file":`index.tsx`,children:(0,P.jsx)(R,{amount:r,"data-sentry-element":`GiveForwardForm`,"data-sentry-source-file":`index.tsx`})})]})})]})});function R({amount:e}){let{distributionConfig:t}=n(),{default_ticket_price_in_cents:r}=t,i=j(),a=f({resolver:b(F),defaultValues:{name:``,email:``,phone:``,preferredGroup:``}}),{formState:{isSubmitting:o,errors:c},setError:l,clearErrors:p}=a;if(i.type===`loading`)return(0,P.jsx)(`div`,{children:`Loading...`});if(i.type===`error`)return(0,P.jsxs)(`div`,{children:[`Error: `,i.error.message]});let S=i.checkout,C=e,w=Math.floor(C/r);async function E(e){p(`root`);let{data:t,error:n}=await s({body:{stripe_checkout_session_id:S.id,amount:C,name:e.name,email:e.email,phone:e.phone,preferred_group:e.preferredGroup}});if(n){l(`root.serverError`,{message:n.detail?.[0]?.msg});return}let r=await S.confirm({redirect:`always`,email:e.email});if(O(r)){l(`root.serverError`,{message:r.error.message});return}}return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g,{error:c.root?.serverError,"data-sentry-element":`ServerErrorAlert`,"data-sentry-source-file":`index.tsx`}),(0,P.jsx)(m,{...a,"data-sentry-element":`Form`,"data-sentry-source-file":`index.tsx`,children:(0,P.jsxs)(`form`,{onSubmit:a.handleSubmit(E),className:`space-y-4 text-left`,children:[(0,P.jsxs)(`div`,{className:`bg-muted my-8 space-y-2 rounded border p-4`,children:[(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[(0,P.jsx)(`span`,{children:`Contribution Amount`}),(0,P.jsx)(`span`,{className:`font-semibold`,children:D(C)})]}),(0,P.jsx)(`div`,{className:`text-muted-foreground flex justify-between text-sm`,children:(0,P.jsxs)(`span`,{children:[`At least `,w,` tickets`]})})]}),(0,P.jsx)(y,{name:`name`,render:({field:e})=>
1(0,P.jsxs)(d,{children:[(0,P.jsx)(h,{children:`Name`}),(0,P.jsx)(u,{children:(0,P.jsx)(v,{placeholder:`Your full name`,...e})}),(0,P.jsx)(x,{})]}),"data-sentry-element":`FormField`,"data-sentry-source-file":`index.tsx`}),(0,P.jsx)(y,{name:`email`,render:({field:e})=>(0,P.jsxs)(d,{children:[(0,P.jsx)(h,{children:`Email`}),(0,P.jsx)(u,{children:(0,P.jsx)(v,{type:`email`,placeholder:`[email protected]`,...e})}),(0,P.jsx)(x,{})]}),"data-sentry-element":`FormField`,"data-sentry-source-file":`index.tsx`}),(0,P.jsx)(y,{name:`phone`,render:({field:e})=>(0,P.jsxs)(d,{children:[(0,P.jsx)(h,{children:`Phone`}),(0,P.jsx)(u,{children:(0,P.jsx)(v,{type:`tel`,placeholder:`(555) 555-5555`,...e})}),(0,P.jsx)(x,{})]}),"data-sentry-element":`FormField`,"data-sentry-source-file":`index.tsx`}),(0,P.jsx)(y,{name:`preferredGroup`,render:({field:e})=>(0,P.jsxs)(d,{children:[(0,P.jsx)(h,{children:`Preferred group you'd like to support`}),(0,P.jsx)(u,{children:(0,P.jsx)(v,{placeholder:`Group or organization name`,...e})}),(0,P.jsx)(_,{children:`We cannot guarantee your funds will directly go towards a screening for this group, but your answer will help us determine which groups to give screenings to.`}),(0,P.jsx)(x,{})]}),"data-sentry-element":`FormField`,"data-sentry-source-file":`index.tsx`}),(0,P.jsxs)(`div`,{className:`mt-6`,children:[(0,P.jsx)(`h3`,{className:`mb-4 text-lg font-semibold`,children:`Payment Information`}),(0,P.jsx)(A,{id:`payment-element`,"data-sentry-element":`PaymentElement`,"data-sentry-source-file":`index.tsx`})]}),(0,P.jsxs)(`div`,{className:`prose prose-sm bg-muted my-8 space-y-2 rounded border p-4`,children:[(0,P.jsx)(`p`,{children:`By contributing to our Give Forward ticket pool, you understand and agree to the following:`}),(0,P.jsxs)(`ul`,{children:[(0,P.jsxs)(`li`,{children:[`Your contribution will be used to give free screenings to priests, religious, seminarians, students, and/or missionaries. The `,(0,P.jsx)(`em`,{children:`Triumph of the Heart`}),` team will determine how to allocate Give Forward funds.`]}),(0,P.jsx)(`li`,{children:`This is not a donation.`}),(0,P.jsxs)(`li`,{children:[`You agree to our`,` `,(0,P.jsx)(`a`,{href:`https://www.triumphoftheheart.com/crowdfunding-terms-conditions`,target:`_blank`,rel:`noopener noreferrer`,className:`underline`,children:`Terms and Conditions`}),`.`]})]})]}),(0,P.jsx)(T,{className:k({variant:`primary`}),type:`submit`,disabled:o,"data-sentry-element":`Button`,"data-sentry-source-file":`index.tsx`,children:o?`Processing...`:`Complete Payment`})]})})]})}export{I as clientLoader,L as default};

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.