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,CAAC,CAACC,EAAE,EACf5I,KAAKgJ,GAAG,CAAC,GAAIH,EACnC,CAEA,OAAOrG,CACX,EAGqC9L,EAAGuS,WAAW,IAYlB5K,GAER,IAGa6K,EAAiBC,IAAiChL,CAAAA,EADhEF,CACsEmL,EADtEnL,EAEsB,CAC9C","sources":["webpack://_N_E/./src/components/atoms/GoldButton.jsx","webpack://_N_E/./src/hooks/useWiggleAnimation.js","webpack://_N_E/./src/components/atoms/PorangeButton.jsx","webpack://_N_E/./src/components/atoms/PorangeCheckmark.jsx","webpack://_N_E/./src/components/atoms/Separator.jsx","webpack://_N_E/./src/components/atoms/Spinner.jsx","webpack://_N_E/./src/components/molecules/SocialProofAvatars.jsx","webpack://_N_E/./src/components/atoms/Testimony.jsx","webpack://_N_E/./src/components/molecules/Testimonies.jsx","webpack://_N_E/./src/components/atoms/Title.jsx","webpack://_N_E/./src/components/atoms/Paragraph.jsx","webpack://_N_E/./src/components/atoms/SecondaryTitle.jsx","webpack://_N_E/./src/components/atoms/SecondaryParagraph.jsx","webpack://_N_E/./src/components/atoms/TertiaryTitle.jsx","webpack://_N_E/./src/features/stripe-precheckout-payment-elements/ChargeInfoBox.jsx","webpack://_N_E/./src/components/organisms/PricingCard.jsx","webpack://_N_E/./src/features/PreCheckoutPage.jsx","webpack://_N_E/./src/features/stripe-precheckout-payment-elements/CardPaymentEmail.jsx","webpack://_N_E/./src/features/stripe-precheckout-payment-elements/CardPaymentButton.jsx","webpack://_N_E/./src/features/stripe-precheckout-payment-elements/stripe.js","webpack://_N_E/./src/features/stripe-precheckout-payment-elements/ThirdPartyPaymentButton.jsx","webpack://_N_E/./src/features/stripe-precheckout-payment-elements/StripePaymentContainer.jsx","webpack://_N_E/./src/constants/noise.js","webpack://_N_E/./src/context/QuizDataContextProvider.js","webpack://_N_E/./src/context/StripeContextProvider.js","webpack://_N_E/./src/utils/email.js","webpack://_N_E/./src/utils/noise.js"],"sourcesContent":["import classNames from 'classnames';\nimport { Spinner } from './Spinner';\nimport { useEffect, useState } from 'react';\n\nexport const GoldButton = ({ children, className, error, onClick, showloader = false, ...props }) => {\n const [isLoading, setIsLoading] = useState(false);\n\n useEffect(() => {\n if (error) {\n setIsLoading(false);\n }\n }, [error]);\n\n return (\n {\n setIsLoading(true);\n onClick(event);\n }}\n >\n {(showloader && isLoading) ? : children}\n \n );\n}","import { useEffect, useRef, useState } from \"react\";\n\nexport const useWiggleAnimation = (enabled = false) => {\n\tconst animationSingleton = useRef(null);\n\tconst [isWiggling, setIsWiggling] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (enabled) {\n\t\t\tif (!animationSingleton.current) {\n\t\t\t\tconst animate = async () => {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tsetIsWiggling(false);\n\t\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t\tawait new Promise((resolve) => setTimeout(resolve, 3000));\n\t\t\t\t\t\tsetIsWiggling(true);\n\t\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t\tawait new Promise((resolve) => setTimeout(resolve, 300));\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tanimate();\n\t\t\t\tanimationSingleton.current = true;\n\t\t\t}\n\t\t}\n\t}, [enabled]);\n\n\treturn { isWiggling };\n};\n","\"use client\";\n\nimport { useState, useEffect } from \"react\";\nimport { Inter } from \"next/font/google\";\nimport classNames from \"classnames\";\nimport { useWiggleAnimation } from \"@/hooks/useWiggleAnimation\";\nimport { Spinner } from \"./Spinner\";\n\nconst inter = Inter({ subsets: [\"latin\"] });\n\n\nexport const PorangeButton = ({\n\tchildren = \"\",\n\tfull = false,\n\tanimate = false,\n\tvariation = \"default\",\n\tshowLoader = false,\n\tdisabled = false,\n\tclassName,\n\tonClick,\n\tid,\n\terror = false,\n}) => {\n\tconst [isLoading, setIsLoading] = useState(false);\n\tconst { isWiggling } = useWiggleAnimation(animate);\n\n\tuseEffect(() => {\n\t\tif (error) {\n\t\t\tsetIsLoading(false);\n\t\t}\n\t}, [error]);\n\n\tif (!children) {\n\t\tthrow new Error(\"Button text is required\");\n\t}\n\n\treturn (\n\t\t {\n\t\t\t\tif (variation === \"tt-slider-quiz-question\" || showLoader) {\n\t\t\t\t\tsetIsLoading(true);\n\t\t\t\t}\n\n\t\t\t\tonClick(event);\n\t\t\t}}\n\t\t\tclassName={classNames(inter.className, className, {\n\t\t\t\t\"animate-wiggle\": isWiggling,\n\t\t\t\t\"h-[60px] rounded-[20px] text-lg\": variation === \"large\",\n\t\t\t\t\"text-base p-4 flex items-center justify-center gap-2 text-white font-bold px-3 py-2\": true,\n\t\t\t\t\"bg-gradient-dark-porange hover:bg-gradient-darker-porange active:bg-gradient-darker-porange\":\n\t\t\t\t\t[\"default\", \"large\"].includes(variation),\n\t\t\t\t\"h-12 rounded-xl\": variation === \"default\",\n\t\t\t\t\"h-20 rounded-full bg-gradient-tt-slider-quiz-question shadow-md\":\n\t\t\t\t\tvariation === \"tt-slider-quiz-question\",\n\t\t\t\t\"user-select-none cursor-pointer\": !disabled,\n\t\t\t\t\"w-full\": full,\n\t\t\t\t\"w-80 max-w-full\": !full,\n\t\t\t\t\"opacity-50 cursor-not-allowed pointer-events-none\": disabled,\n\t\t\t})}>\n\t\t\t{isLoading && showLoader ? : children}\n\t\t\n\t);\n};\n","export const PorangeCheckmark = () => {\n return (\n \n \n \n \n \n );\n};","export const Separator = ({ text, textColor }) => {\n return (\n
\n
\n {text}\n
\n
\n );\n};\n","export const Spinner = () => {\n return (\n \n \n \n \n );\n};","\"use client\";\n\nimport classNames from \"classnames\";\nimport Image from \"next/image\";\nimport { useMemo } from \"react\";\nimport { Inter } from \"next/font/google\";\nimport { Fragment } from \"react\";\nimport { FormatAmount } from \"@/utils\";\nimport { usePathname } from \"next/navigation\";\nconst inter = Inter({ subsets: [\"latin\"] });\n\nexport const MIN_SOCIAL_PROOF = 128;\nexport const MAX_SOCIAL_PROOF = 249;\n\nconst hashString = (str) => {\n\treturn str.split(\"\").reduce((acc, char) => {\n\t\treturn acc + char.charCodeAt(0);\n\t}, 0);\n};\n\nconst randomAvatars = (count, hashValue = \"foo\") => {\n\tconst hash = hashString(hashValue);\n\tconsole.log({ hash, hashValue });\n\n\treturn new Array(count).fill(null).map((_, index) => {\n\t\tconst avatarIndex = ((hash + index) % 45) + 1;\n\t\treturn `/assets/avatars/Avatar user-${avatarIndex}.png`;\n\t});\n};\n\nexport const SocialProofAvatars = ({\n\tavatarsBorderColor,\n\tcount = 0,\n\ttotalCount = 0,\n}) => {\n\tconst pathname = usePathname();\n\tconst avatars = useMemo(() => {\n\t\treturn randomAvatars(count, pathname);\n\t}, [count, pathname]);\n\n\treturn (\n\t\t 0 && `${(avatars.length - 1) * 12 + 20}px`,\n\t\t\t}}>\n\t\t\t{avatars.map((avatar, index) => {\n\t\t\t\tif (avatar) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t);\n\t\t\t})}\n\t\t\t{totalCount > 0 ? (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{FormatAmount(totalCount)}+\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) : null}\n\t\t\n\t);\n};\n","import Image from \"next/image\";\n\nconst IMAGE_SIZE = 36;\n\nconst StarIcon = () => {\n return (\n \n \n \n );\n};\n\nexport const Testimony = ({\n text,\n username,\n imageSrc,\n glutenFreeLevel,\n stars = 0,\n}) => {\n const starsArray = Array.from({ length: stars }, (_, index) => index + 1);\n \n return (\n
\n
\n
\n {starsArray.map((star) => (\n \n ))}\n
\n

\n {text}\n

\n
\n
\n
\n \n
\n
\n

{username}

\n

{glutenFreeLevel}

\n
\n
\n
\n );\n};\n","import { Testimony } from \"../atoms/Testimony\";\n\nexport const Testimonies = ({ testimonies = [] }) => {\n return (\n
\n {testimonies.map((testimony) => (\n \n ))}\n
\n );\n};\n","// import localFont from \"next/font/local\";\nimport classNames from \"classnames\";\n\n// FIXME: Does not work in storybook\n// const montFont = localFont({\n// src: \"../../fonts/Mont-Trial-Bold.ttf\",\n// fallback: [\"font-mont\"],\n// });\n\nexport const Title = ({ children, className }) => {\n return (\n \n {children}\n \n );\n};\n","import classNames from \"classnames\";\nimport { Inter } from \"next/font/google\";\n\nconst interFont = Inter({ subsets: [\"latin\"] });\n\nexport const Paragraph = ({ children, className }) => {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n","import classNames from \"classnames\";\n// import localFont from \"next/font/local\";\n\n// FIXME: Does not work in storybook\n// const montFont = localFont({\n// src: \"../../fonts/Mont-Trial-Bold.ttf\",\n// fallback: [\"font-mont\"],\n// });\n\nexport const SecondaryTitle = ({ children, className }) => {\n return (\n \n {children}\n \n );\n};\n","import classNames from \"classnames\";\nimport { Inter } from \"next/font/google\";\n\nconst interFont = Inter({ subsets: [\"latin\"] });\n\nexport const SecondaryParagraph = ({ children, className }) => {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n","import classNames from \"classnames\";\nimport { Inter } from \"next/font/google\";\n\nconst interFont = Inter({ subsets: [\"latin\"] });\n\nexport const TertiaryTitle = ({ children, className }) => {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n","import { Inter } from \"next/font/google\";\nimport { useStripeContext } from \"@/context/StripeContextProvider\";\n\nconst inter = Inter({ subsets: [\"latin\"] });\n\nexport default function ChargeInfoBox() {\n const { pricePerMonth, withTrial, priceAmount } = useStripeContext();\n\n return (\n
\n
\n
\n Charged today\n {withTrial ? \"$0.00\" : `$${priceAmount / 100}`}\n
\n
\n {pricePerMonth &&
\n {withTrial ? \"Price after 7 days\" : \"\"}\n \n ${pricePerMonth.toFixed(2)}/mo billed annually\n \n
}\n {withTrial ? <>\n
\n Access Atly maps\n Free\n
\n No commitment. Cancel anytime\n : null\n }\n
\n
\n
\n );\n}","\"use client\";\n\nimport { PorangeButton } from \"@/components/atoms/PorangeButton\";\nimport { Inter } from \"next/font/google\";\nimport classNames from \"classnames\";\nimport { TertiaryTitle } from \"@/components/atoms/TertiaryTitle\";\nimport ChargeInfoBox from \"@/features/stripe-precheckout-payment-elements/ChargeInfoBox\";\nimport PaymentElements from \"@/features/stripe-precheckout-payment-elements/StripePaymentContainer\";\nimport { Separator } from \"@/components/atoms/Separator\";\nimport { useStripeContext } from \"@/context/StripeContextProvider\";\nimport { PorangeCheckmark } from \"@/components/atoms/PorangeCheckmark\";\n\nconst inter = Inter({ subsets: [\"latin\"] });\n\nexport const PricingCard = ({\n\ttitle,\n\tfeatures,\n\tprice,\n\tbuttonText,\n\tdisclaimer,\n\tonClick,\n\tdisabled = false,\n\tuserEmail,\n\tbranchUrl,\n\twithTrial = false\n}) => {\n\tconst { customerId } = useStripeContext();\n\tconst isStripeEmbed = !!customerId;\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{title}\n\t\t\t\t\t
    \n\t\t\t\t\t\t{features.map((feature, index) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{feature}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t))}\n\t\t\t\t\t
\n\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{isStripeEmbed ? null :

{disclaimer}

}\n\t\t\t\t\t\t\t{isStripeEmbed ? null :

{price}

}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{isStripeEmbed ?\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t: (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{buttonText}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tCancel anytime, terms & conditions apply\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n};\n","\"use client\";\n\nimport Image from \"next/image\";\nimport classNames from \"classnames\";\nimport { Title } from \"@/components/atoms/Title\";\nimport { Paragraph } from \"@/components/atoms/Paragraph\";\nimport { Testimonies } from \"@/components/molecules/Testimonies\";\nimport { PorangeButton } from \"@/components/atoms/PorangeButton\";\nimport { SecondaryTitle } from \"@/components/atoms/SecondaryTitle\";\nimport { SecondaryParagraph } from \"@/components/atoms/SecondaryParagraph\";\nimport { SocialProofAvatars } from \"@/components/molecules/SocialProofAvatars\";\nimport { PricingCard } from \"@/components/organisms/PricingCard\";\nimport { getNoise } from \"@/utils/noise\";\nimport { MIN_SOCIAL_PROOF, MAX_SOCIAL_PROOF } from \"@/constants/noise\";\nimport { Inter } from \"next/font/google\";\nimport { useParams } from 'next/navigation'\nimport { useEffect, useMemo } from \"react\";\nimport { VETTED_PLACES_WORLDWIDE } from \"@/constants\";\nimport { useStripeContext } from \"@/context/StripeContextProvider\";\nimport { useQuizDataContext } from \"@/context/QuizDataContextProvider\";\n\nconst interFont = Inter({ subsets: [\"latin\"] });\n\nexport const TestimoniesData = [\n {\n id: 2,\n text: \"As someone with celiac disease, the safety rankings are super helpful. I love being able to filter for only celiac-friendly and 100% gluten-free restaurants.\",\n imageSrc: \"/assets/avatars/Avatar user-1.png\",\n username: \"Jane G.\",\n glutenFreeLevel: \"Highly symptomatic celiac\",\n stars: 5,\n },\n {\n id: 1,\n text: \"I have been using it for 3 months and all I can say is.. YESSSS! I don't feel the need to call and double check every time. So much less complicated.\",\n imageSrc: \"/assets/avatars/Avatar user-5.png\",\n username: \"Kenneth M.\",\n glutenFreeLevel: \"Gluten Intolerant\",\n stars: 5,\n },\n {\n id: 3,\n text: \"The color-coded pins make it so easy to find places. Saves me so much time. I love this map!!\",\n imageSrc: \"/assets/avatars/Avatar user-3.png\",\n username: \"Sammy F.\",\n glutenFreeLevel: \"Gluten Preference\",\n stars: 5,\n },\n {\n id: 4,\n text: \"Love how reviews from different platforms are in one place! And there is a dedicated team behind the updates, gives me peace of mind.\",\n imageSrc: \"/assets/avatars/Avatar user-2.png\",\n username: \"Derrick T.\",\n glutenFreeLevel: \"Symptomatic celiac\",\n stars: 5,\n },\n {\n id: 5,\n text: \"Knowing the safety rankings were developed with dietitians gives me peace of mind. The recommendation counts on pins super nifty too!\",\n imageSrc: \"/assets/avatars/Avatar user-4.png\",\n username: \"Shantal L.\",\n glutenFreeLevel: \"Symptomatic celiac\",\n stars: 5,\n }\n];\n\nconst Article = ({ children, noMargin, className }) => {\n return (\n
\n {children}\n
\n );\n};\n\nexport const PreCheckoutPage = ({\n isDisabled = false,\n formSubmit = () => { },\n trialVariation = false,\n promotionAmountOff = 0,\n userEmail = \"\",\n branchUrl = \"\",\n}) => {\n const params = useParams();\n const { isAppTrial } = useQuizDataContext();\n const noise = getNoise(\"glutenfreeq\", {\n min: MIN_SOCIAL_PROOF,\n max: MAX_SOCIAL_PROOF,\n range: MAX_SOCIAL_PROOF - MIN_SOCIAL_PROOF,\n });\n\n const immediateFlow = params?.ad === \"ad\";\n const { clientSecret, customerId } = useStripeContext();\n\n const isInfluencerFlow = useMemo(() => {\n return clientSecret && customerId;\n }, [clientSecret, customerId]);\n\n const buttonCtaText = useMemo(() => {\n return trialVariation ? \"Start 7 day free trial\" : isAppTrial ? \"Download App\" : \"Subscribe\";\n }, [trialVariation, isAppTrial]);\n\n const disclaimer = useMemo(() => {\n if (isDisabled) {\n return \"\";\n }\n\n if (promotionAmountOff) {\n return `$${promotionAmountOff} off promo applied ✅`;\n }\n\n if (immediateFlow || !trialVariation) {\n return \"\";\n }\n\n return \"Charged today\";\n }, [promotionAmountOff, immediateFlow, trialVariation, isDisabled]);\n\n const price = useMemo(() => {\n if (isDisabled) {\n return \"\";\n }\n\n if (promotionAmountOff) {\n return \"\";\n }\n\n if (immediateFlow || !trialVariation) {\n return \"\";\n }\n\n return \"$0.00\";\n }, [promotionAmountOff, immediateFlow, trialVariation, isDisabled]);\n\n return (\n
\n
\n Eat out with confidence!\n \n Quickly find gluten-free restaurants, bakeries, and cafés worldwide.\n \n
\n
\n \n
\n
\n \n \n {noise.value} joined today 👆\n \n
\n
\n \n Built with dietitians and celiac experts\n \n \n We equip you with important information about each place to reduce the\n possibilities of getting sick or going hungry.\n \n \n
\n \n
\n {\n if (isInfluencerFlow) {\n event.preventDefault();\n const emailElement = document.getElementById(\"card-payment-email\");\n if (emailElement) {\n emailElement.scrollIntoView({ behavior: \"smooth\" });\n }\n } else {\n formSubmit(event);\n }\n }}>\n {isInfluencerFlow ? \"Scroll back up\" : immediateFlow ? \"Let's go\" : buttonCtaText}\n \n
\n
\n
\n \n
\n
\n
\n );\n};\n","import classNames from \"classnames\";\nimport { useEffect, useState, useRef } from \"react\";\nimport { isEmailValid } from \"@/utils/email\";\nimport { useSearchParams } from \"next/navigation\";\n\nexport default function CardPaymentEmail({ email, updateEmail, message }) {\n const emailRef = useRef(email);\n const [innerError, setInnerError] = useState(false);\n const [innerEmail, setInnerEmail] = useState(email);\n const searchParams = useSearchParams();\n const autoFillEmail = searchParams.get(\"autoFillEmail\");\n\n useEffect(() => {\n if (autoFillEmail === \"true\") {\n setInnerEmail(`test+${(Math.random() * 100).toFixed(4).replace(\".\", \"\")}@atly.com`);\n emailRef.current.focus();\n emailRef.current.select();\n emailRef.current.blur();\n }\n }, [autoFillEmail]);\n\n useEffect(() => {\n setInnerError(message);\n }, [message]);\n\n return (\n
\n \n {innerError &&

REQUIRED

}\n {\n setInnerEmail(event.target.value);\n }}\n onFocus={() => {\n setInnerError(false);\n }}\n onBlur={(event) => {\n const emailValue = event.target.value;\n if (!emailValue || !isEmailValid(emailValue)) {\n setInnerError(true);\n } else {\n setInnerError(false);\n updateEmail(emailValue);\n }\n }}\n className={classNames(`mb-3 flex\n placeholder:text-[#5c7799]\n justify-center items-center w-full border border-gray-[#e6e6e6] \n shadow-[0px_1px_1px_rgba(0,0,0,0.03),0px_3px_6px_rgba(0,0,0,0.02)] \n rounded-[5px] p-2 bg-white text-sky-950`, {\n 'border-red-500 text-red-500': innerError\n })} />\n
\n )\n}","import { useState } from 'react';\nimport { PorangeButton } from '@/components/atoms/PorangeButton';\nimport { isEmailValid } from \"@/utils/email\";\nimport { track } from \"@/utils/mixpanel\";\nimport { useStripeContext } from '@/context/StripeContextProvider';\nimport { GoldButton } from '@/components/atoms/GoldButton';\n\nexport default function CardPaymentButton({\n stripe,\n elements,\n email,\n customerId,\n branchUrl,\n userId,\n withTrial,\n updateCustomer,\n isNewFlow,\n color,\n subscriptionId,\n cancelSubscriptionId\n}) {\n const [errorMessage, setErrorMessage] = useState('');\n\n const handleSubmit = async (event) => {\n // We don't want to let default form submission happen here,\n // which would refresh the page.\n event.preventDefault();\n\n if (!stripe || !elements) {\n // Stripe.js hasn't yet loaded.\n // Make sure to disable form submission until Stripe.js has loaded.\n return;\n }\n\n if (!email || !isEmailValid(email)) {\n setErrorMessage('Invalid email address.');\n track(\"stripe_card_payment_failed\", {\n error: \"invalid_email\",\n email\n });\n return;\n }\n\n const url = new URL(isNewFlow ? window.location.href : process.env.NEXT_PUBLIC_APP_API_DOMAIN);\n url.pathname = isNewFlow ? \"/quiz/checkout-redirect\" : \"/checkout-redirect\";\n url.searchParams.append(\"email\", email);\n url.searchParams.append(\"link\", branchUrl);\n url.searchParams.append(\"user_id\", userId);\n url.searchParams.append(\"subscription_id\", subscriptionId);\n url.searchParams.append(\"cancel_subscription_id\", cancelSubscriptionId);\n url.searchParams.append(\"success\", \"true\");\n\n const returnUrl = url.toString();\n\n const [result, { error: updateError }] = await Promise.all([\n withTrial ?\n stripe.confirmSetup({\n elements,\n confirmParams: {\n return_url: returnUrl,\n payment_method_data: {\n billing_details: { email }\n }\n },\n })\n :\n stripe.confirmPayment({\n elements,\n confirmParams: {\n return_url: returnUrl,\n },\n }),\n updateCustomer({ type: \"card\", customerId, email })\n ])\n .catch(error => {\n console.error(error);\n track(\"stripe_card_payment_failed\", {\n error: \"confirm_payment_and_update_customer\",\n errorMessage: error.message,\n email,\n customerId,\n payment_method: \"card\"\n });\n });\n\n if (updateError) {\n console.error(updateError);\n setErrorMessage(updateError.message + \" (e101)\");\n track(\"stripe_card_payment_failed\", {\n error: updateError.message,\n errorMessage: updateError.message,\n email,\n customerId,\n payment_method: \"card\"\n });\n return;\n }\n\n if (result.error) {\n // Show error to your customer (for example, payment details incomplete)\n console.error(result.error);\n setErrorMessage(result.error.message + \" (e102)\");\n track(\"stripe_card_payment_failed\", {\n error: result.error.message,\n errorMessage: result.error.message,\n email,\n customerId,\n payment_method: \"card\"\n });\n } else {\n // Your customer will be redirected to your `return_url`. For some payment\n // methods like iDEAL, your customer will be redirected to an intermediate\n // site first to authorize the payment, then redirected to the `return_url`.\n setErrorMessage('');\n }\n };\n\n const Button = color === \"gold\" ? GoldButton : PorangeButton;\n\n return (\n <>\n \n {color === \"gold\" ? \"START MY FREE TRIAL\" : \"Pay now\"}\n \n {errorMessage &&\n
\n {errorMessage}\n
}\n \n )\n}","import { isEmailValid } from \"@/utils/email\";\nimport { useStripe, useElements } from '@stripe/react-stripe-js';\nimport { useCallback } from \"react\";\nimport { track } from \"@/utils/mixpanel\";\n\nexport const useStripePaymentConfirmation = ({\n branchUrl,\n userId,\n withTrial,\n isNewFlow,\n subscriptionId,\n cancelSubscriptionId\n}) => {\n const stripe = useStripe();\n const elements = useElements();\n\n const confirmPayment = useCallback(async (email, callback) => {\n if (!stripe || !elements) {\n throw new Error('Stripe.js hasn\\'t yet loaded.');\n }\n\n if (!email || !isEmailValid(email)) {\n throw new Error('Please fill in all fields.');\n }\n\n console.log('Stripe.js has loaded.', { elements, stripe });\n\n const url = new URL(isNewFlow ? window.location.href : process.env.NEXT_PUBLIC_APP_API_DOMAIN);\n url.pathname = isNewFlow ? \"/quiz/checkout-redirect\" : \"/checkout-redirect\";\n url.searchParams.append(\"email\", email);\n url.searchParams.append(\"link\", branchUrl);\n url.searchParams.append(\"user_id\", userId);\n url.searchParams.append(\"subscription_id\", subscriptionId);\n url.searchParams.append(\"cancel_subscription_id\", cancelSubscriptionId);\n url.searchParams.append(\"success\", \"true\");\n\n const returnUrl = url.toString();\n\n let error = null;\n if (withTrial) {\n const result = await stripe.confirmSetup({\n elements,\n confirmParams: {\n return_url: returnUrl,\n },\n });\n error = result.error;\n } else {\n const result = await stripe.confirmPayment({\n elements,\n confirmParams: {\n // Make sure to change this to your payment completion page\n return_url: returnUrl,\n payment_method_data: {\n billing_details: { email }\n }\n\n },\n });\n error = result.error;\n }\n\n // This point will only be reached if there is an immediate error when\n // confirming the payment. Otherwise, your customer will be redirected to\n // your `return_url`. For some payment methods like iDEAL, your customer will\n // be redirected to an intermediate site first to authorize the payment, then\n // redirected to the `return_url`.\n if (error.type === \"card_error\" || error.type === \"validation_error\") {\n track(\"stripe_payment_failed\", {\n error_type: error.type,\n error: error.message,\n email\n });\n throw new Error(error.message);\n }\n\n return { error };\n }, [stripe, elements, branchUrl, withTrial, userId]);\n\n return confirmPayment;\n}\n","import { ExpressCheckoutElement, useStripe } from '@stripe/react-stripe-js'\nimport { useStripePaymentConfirmation } from './stripe';\nimport { track } from \"@/utils/mixpanel\";\n\nexport default function ThirdPartyPaymentButton({\n customerId,\n updateCustomer,\n setPaymentRequest,\n branchUrl,\n userId,\n withTrial,\n isNewFlow,\n subscriptionId,\n cancelSubscriptionId\n}) {\n const confirmPayment = useStripePaymentConfirmation({\n branchUrl,\n userId,\n withTrial,\n isNewFlow,\n subscriptionId,\n cancelSubscriptionId\n });\n\n return (\n
\n setPaymentRequest(true)}\n onConfirm={async (confirmedObject) => {\n const email = confirmedObject.billingDetails.email;\n if (!email) {\n console.error(\"email is required\", { confirmedObject });\n track(\"stripe_third_party_payment_failed\", {\n error: \"email is required\",\n confirmedObject\n });\n return;\n }\n\n await Promise.all([\n updateCustomer({ type: \"third_party\", customerId, email }),\n confirmPayment(email)\n ])\n .then(([customerResponse, paymentResult]) => {\n if (paymentResult.error) {\n console.error(\"payment failed\", paymentResult.error, { confirmedObject });\n track(\"stripe_third_party_payment_failed\", {\n error: paymentResult.error.message,\n errorMessage: paymentResult.error.message,\n confirmedObject\n })\n }\n })\n .catch((error) => {\n console.error(\"payment failed\", error, { confirmedObject });\n track(\"stripe_third_party_payment_failed\", {\n error: error.message || \"Unknown error\",\n errorMessage: error.message,\n confirmedObject\n });\n });\n }} />\n
\n );\n}\n","'use client';\n\nimport { Elements, ElementsConsumer, PaymentElement } from '@stripe/react-stripe-js'\nimport { loadStripe } from '@stripe/stripe-js';\nimport CardPaymentEmail from './CardPaymentEmail';\nimport CardPaymentButton from './CardPaymentButton';\nimport { useMemo, useState } from 'react';\nimport ThirdPartyPaymentButton from './ThirdPartyPaymentButton';\nimport { Separator } from '@/components/atoms/Separator';\nimport { useStripeContext } from '@/context/StripeContextProvider';\nimport { track } from '@/utils/mixpanel';\nconst stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY);\n\nconst updateCustomer = ({ type, customerId, email }) => {\n return fetch(\"/best/stripe-customer\", {\n method: \"POST\",\n body: JSON.stringify({ customerId, email }),\n })\n .then(response => {\n if (!response.ok) {\n track(`stripe_${type}_customer_update_failed`, {\n error: \"failed_to_update_customer\",\n errorMessage: response.statusText,\n email,\n customerId,\n payment_method: type\n });\n throw new Error(`Failed to update customer: ${response.status}`);\n }\n\n track(`stripe_${type}_customer_update_succeeded`, {\n email,\n customerId,\n payment_method: type\n });\n return response.json();\n })\n .catch(error => {\n console.error(\"Failed to update customer\", error);\n track(`stripe_${type}_customer_update_failed`, {\n error: \"failed_to_update_customer\",\n errorMessage: error.message,\n email,\n customerId,\n payment_method: type\n });\n\n return null;\n });\n};\n\nconst Variants = {\n new_precheckout: {\n separatorColor: \"white\",\n separatorText: \"or with card\",\n paymentButtonColor: \"gold\",\n },\n default: {\n separatorText: \"Or\",\n paymentButtonColor: \"porange\",\n },\n}\nexport default function StripePaymentContainer({\n userEmail,\n variant = \"default\",\n plan,\n}) {\n const [email, setEmail] = useState('');\n const [message, setMessage] = useState('');\n const [isPristine, setIsPristine] = useState(true);\n const [paymentRequest, setPaymentRequest] = useState(null);\n const {\n clientSecret,\n customerId,\n branchLink,\n userId,\n withTrial,\n isNewFlow,\n onStripeConfirm,\n monthlySubscriptionId,\n annualSubscriptionId,\n subscriptionId,\n } = useStripeContext();\n\n const subId = useMemo(() => {\n if (!plan) return subscriptionId;\n\n if (plan === 'month') return monthlySubscriptionId;\n if (plan === 'year') return annualSubscriptionId;\n\n return subscriptionId;\n }, [plan, monthlySubscriptionId, annualSubscriptionId, subscriptionId]);\n\n const cancelSubscriptionId = useMemo(() => {\n if (!plan) return null;\n\n if (plan === 'month') return annualSubscriptionId;\n if (plan === 'year') return monthlySubscriptionId;\n\n return null;\n }, [plan, monthlySubscriptionId, annualSubscriptionId]);\n\n console.log({\n plan,\n subId,\n cancelSubscriptionId,\n clientSecret,\n customerId,\n userId,\n withTrial,\n isNewFlow,\n onStripeConfirm,\n });\n\n return (\n
\n \n \n {({ stripe, elements }) => (\n <>\n \n {paymentRequest\n ? : null}\n {userEmail\n ? null\n : }\n \n {\n console.log(event);\n setIsPristine(event.collapsed);\n }}\n options={{\n layout: {\n type: 'accordion',\n defaultCollapsed: true,\n }\n }} />\n setMessage('Please fill in your email.')}\n disabled={isPristine}\n onStripeConfirm={onStripeConfirm}\n subscriptionId={subId}\n cancelSubscriptionId={cancelSubscriptionId}\n />\n \n )}\n \n \n
\n );\n}","export const MIN_SOCIAL_PROOF = 128;\nexport const MAX_SOCIAL_PROOF = 249;\n","import { createContext, useContext, useState } from \"react\";\n\nconst QuizDataContext = createContext({\n isAppTrial: false,\n variationName: \"\",\n});\n\nexport const QuizDataContextProvider = ({ children, isAppTrial, variationName }) => {\n return (\n \n {children}\n \n );\n}\n\nexport const useQuizDataContext = () => {\n const context = useContext(QuizDataContext);\n if (!context) {\n throw new Error('useQuizDataContext must be used within a QuizDataContextProvider');\n }\n\n return context;\n}","'use client';\n\nimport { createContext, useContext, useState } from \"react\";\n\nexport const StripeContext = createContext({\n stripe: null,\n customerId: null,\n clientSecret: null,\n pricePerMonth: null,\n branchLink: null,\n userId: null,\n});\n\nexport const StripeContextProvider = ({\n customerId,\n clientSecret,\n pricePerMonth,\n branchLink,\n userId,\n children,\n withTrial = true,\n priceAmount,\n isNewFlow = false,\n onStripeConfirm,\n monthlyTrialEnd,\n annualTrialEnd,\n monthlySubscriptionId,\n annualSubscriptionId,\n ...rest\n}) => {\n const [stripeData, setStripeData] = useState({\n monthlyClientSecret: \"\",\n annualClientSecret: \"\",\n monthlyTrialEnd: \"\",\n annualTrialEnd: \"\",\n prices: [],\n });\n\n console.log(\"StripeContextProvider\", {\n customerId,\n clientSecret,\n pricePerMonth,\n branchLink,\n userId,\n });\n\n return (\n {\n console.log({\n chosenSubscriptionId: subscriptionId,\n monthlyTrialEnd,\n annualTrialEnd,\n })\n onStripeConfirm({\n subscriptionId,\n monthlyTrialEnd,\n annualTrialEnd,\n });\n },\n ...rest\n }}>\n {children}\n \n );\n};\n\nexport const useStripeContext = () => {\n const context = useContext(StripeContext);\n if (!context) {\n throw new Error('useStripeContext must be used within a StripeContextProvider');\n }\n return context;\n};\n","\nexport const isEmailValid = (email) => {\n return /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);\n};\n","function base62ToInteger(s) {\n const BASE62 = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n let result = 0;\n for (let i = 0; i < s.length; i++) {\n const power = s.length - 1 - i;\n const digit = BASE62.indexOf(s[i]);\n result += digit * Math.pow(62, power);\n }\n\n return result;\n}\n\nfunction hashToRange(id, range) {\n const largeNum = base62ToInteger(id.toUpperCase());\n return largeNum % range;\n}\n\nconst calculatePerlinNoiseSeed = () => {\n const currentTime = new Date();\n const timeInHours = currentTime.getHours() + currentTime.getMinutes() / 30;\n return Math.sin(((timeInHours + 17) / 12) * Math.PI) * 150;\n};\n\nexport const getNoise = (id, {range = 199, min = 149, max = 199} = {}) => {\n const seed = calculatePerlinNoiseSeed();\n const base = hashToRange(id, range);\n let value = Math.round(Math.abs(seed)) + base;\n const original_min = -449;\n const original_max = 250;\n const desired_min = min;\n const normalizedValue = ((value - original_min) / (original_max - original_min)) * (max - desired_min) + desired_min;\n return {value: Math.round(normalizedValue)};\n};"],"names":["GoldButton","children","className","error","onClick","showloader","props","param","isLoading","setIsLoading","useState","useEffect","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","button","classNames","event","Spinner","useWiggleAnimation","enabled","animationSingleton","useRef","isWiggling","setIsWiggling","current","animate","Promise","setTimeout","resolve","PorangeButton","full","variation","showLoader","disabled","id","jsx_runtime","div","inter","includes","PorangeCheckmark","span","svg","width","height","viewBox","fill","xmlns","path","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","Separator","text","textColor","jsxs","hr","concat","circle","class","cx","cy","r","hashString","str","split","reduce","acc","char","charCodeAt","randomAvatars","count","hashValue","hash","console","log","map","_","index","SocialProofAvatars","avatarsBorderColor","totalCount","pathname","usePathname","avatars","useMemo","style","length","avatar","Image","src","alt","objectFit","left","Fragment","FormatAmount","StarIcon","Testimony","username","imageSrc","glutenFreeLevel","stars","starsArray","Array","from","star","p","Testimonies","testimonies","testimony","Title","Paragraph","interFont","SecondaryTitle","SecondaryParagraph","TertiaryTitle","ChargeInfoBox","pricePerMonth","withTrial","priceAmount","useStripeContext","toFixed","PricingCard","title","features","price","buttonText","disclaimer","userEmail","branchUrl","customerId","isStripeEmbed","ul","feature","li","h3","PaymentElements","TestimoniesData","Article","noMargin","article","PreCheckoutPage","isDisabled","formSubmit","trialVariation","promotionAmountOff","params","useParams","isAppTrial","useQuizDataContext","noise","getNoise","min","MIN_SOCIAL_PROOF","max","MAX_SOCIAL_PROOF","range","immediateFlow","ad","clientSecret","isInfluencerFlow","buttonCtaText","VETTED_PLACES_WORLDWIDE","value","preventDefault","emailElement","document","getElementById","scrollIntoView","behavior","CardPaymentEmail","email","updateEmail","message","emailRef","innerError","setInnerError","innerEmail","setInnerEmail","autoFillEmail","searchParams","useSearchParams","get","Math","random","replace","focus","select","blur","label","htmlFor","input","type","ref","placeholder","onChange","target","onFocus","onBlur","emailValue","isEmailValid","CardPaymentButton","stripe","elements","userId","updateCustomer","isNewFlow","color","subscriptionId","cancelSubscriptionId","errorMessage","setErrorMessage","handleSubmit","track","url","URL","window","location","href","process","append","returnUrl","toString","result","updateError","all","confirmSetup","confirmParams","return_url","payment_method_data","billing_details","confirmPayment","catch","payment_method","Button","useStripePaymentConfirmation","useStripe","useElements","useCallback","callback","error_type","ThirdPartyPaymentButton","setPaymentRequest","ExpressCheckoutElement","options","emailRequired","onReady","onConfirm","confirmedObject","billingDetails","then","customerResponse","paymentResult","stripePromise","loadStripe","fetch","method","body","JSON","stringify","response","ok","statusText","status","json","Variants","new_precheckout","separatorColor","separatorText","paymentButtonColor","default","StripePaymentContainer","variant","plan","setEmail","setMessage","isPristine","setIsPristine","paymentRequest","branchLink","onStripeConfirm","monthlySubscriptionId","annualSubscriptionId","subId","Elements","ElementsConsumer","PaymentElement","collapsed","layout","defaultCollapsed","onMissingEmail","QuizDataContext","createContext","variationName","QuizDataContextProvider","Provider","context","useContext","StripeContext","StripeContextProvider","monthlyTrialEnd","annualTrialEnd","rest","stripeData","setStripeData","monthlyClientSecret","annualClientSecret","prices","chosenSubscriptionId","test","calculatePerlinNoiseSeed","currentTime","Date","sin","timeInHours","getHours","getMinutes","PI","arguments","round","abs","largeNum","s","i","power","digit","indexOf","pow","toUpperCase","original_min","original_max","desired_min"],"sourceRoot":""}