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AA,EAAON,OAAAA,CAAO,GAEnE,GAAI,CACA,IAAMyK,EAAS,MAAMC,EAAAA,CAAYA,CAACI,IAAI,CAAU,GAAW7J,MAAA,CAlEnD,aAkEmD,cAAa,CAAEX,MAAAA,EAAON,OAAAA,CAAO,GAGxF,OADAe,EAAAA,CAAMA,CAACC,KAAK,CAAC,GAAcC,MAAA,CAAXrB,EAAW,uBAAsB,CAAE6K,OAAAA,CAAO,GACnDA,CACX,CAAE,MAAO9J,EAAO,CAEZ,MADAI,EAAAA,CAAMA,CAACJ,KAAK,CAAC,GAAcM,MAAA,CAAXrB,EAAW,yBAAwB,CAAEe,MAAAA,CAAM,GACrDA,CACV,CACJ","sources":["webpack://_N_E/./src/layers/presentation/components/ui/SubscriptionForm.tsx","webpack://_N_E/./src/layers/presentation/components/ui/SubscriptionPrompt.tsx","webpack://_N_E/./src/layers/presentation/context/IntercomContext.tsx","webpack://_N_E/./src/layers/presentation/context/NotificationContext.tsx","webpack://_N_E/./src/layers/presentation/hooks/useThrowNotification.ts","webpack://_N_E/./src/layers/presentation/services/providers.ts","webpack://_N_E/./src/layers/presentation/services/sponsors.ts","webpack://_N_E/./src/layers/presentation/services/users.ts"],"sourcesContent":["import { useIntercom } from '@/layers/presentation/context/IntercomContext';\nimport { useTranslation } from '@/layers/presentation/i18n/client';\nimport { subscribeUser } from '@/layers/presentation/services/users';\nimport logger from '@/layers/support/monitoring/logger';\nimport { SubscriptionParams, SubscriptionText } from '@/types/users';\nimport { Button, Checkbox, Input, Link } from '@nextui-org/react';\nimport { useState } from 'react';\n\nconst LOG_MODULE = 'FE [Presentation / Components / SubscriptionForm]';\n\ninterface SubscriptionFormProps {\n text: SubscriptionText;\n params: SubscriptionParams;\n onSubscribeSuccess: () => void;\n}\n\nexport function SubscriptionForm({ text, params, onSubscribeSuccess }: SubscriptionFormProps) {\n const { t } = useTranslation();\n const { getVisitorId } = useIntercom();\n const [email, setEmail] = useState('');\n const [termsAccepted, setTermsAccepted] = useState(false);\n const [error, setError] = useState('');\n const [isSubscribing, setIsSubscribing] = useState(false);\n\n logger.debug(`${LOG_MODULE}`, { params, email, termsAccepted, error, isSubscribing });\n\n const handleSubmit = async (e: React.FormEvent) => {\n const visitorId = await getVisitorId();\n logger.debug(`${LOG_MODULE} handleSubmit`, { e, email, termsAccepted, params, visitorId });\n\n e.preventDefault();\n setError('');\n\n if (!email || !termsAccepted) {\n setError(t('components:subscriptionForm.fillEmailAndAcceptTerms'));\n return;\n }\n\n try {\n setIsSubscribing(true);\n const success = await subscribeUser(email, { ...params, visitorId });\n if (success) {\n onSubscribeSuccess();\n } else {\n setError(t('components:subscriptionForm.subscriptionFailed'));\n }\n } catch (error) {\n logger.error(`${LOG_MODULE} handleSubmit`, { error });\n setError(t('components:subscriptionForm.errorOccurred'));\n } finally {\n setIsSubscribing(false);\n }\n };\n\n return (\n
\n );\n}\n","import { SubscriptionForm } from '@/layers/presentation/components/ui/SubscriptionForm';\nimport { useGlobalState } from '@/layers/presentation/context/GlobalStateContext';\nimport { useThrowNotification } from '@/layers/presentation/hooks/useThrowNotification';\nimport logger from '@/layers/support/monitoring/logger';\nimport { NotificationType } from '@/types/modelEnums';\nimport { SubscriptionParams, SubscriptionText } from '@/types/users';\nimport { Button, Modal, ModalBody, ModalContent, useDisclosure } from '@nextui-org/react';\nimport React, { createContext, useContext, useState } from 'react';\n\nconst LOG_MODULE = 'FE [Presentation / Components / SubscriptionPrompt]';\n\n// Create context for the subscription modal\ntype SubscriptionModalContextType = {\n openModal: (modal: SubscriptionText, params: SubscriptionParams) => void;\n closeModal: () => void;\n};\n\nconst SubscriptionModalContext = createContext{prompt.text}
\n \n