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DD,YAAaC,CAAC,CAAC,gDAAgD,E,EAGrE,C","sources":["webpack://@affine/web/../core/src/components/affine/subscription-landing/index.tsx","webpack://@affine/web/../core/src/components/affine/subscription-landing/styles.css.ts"],"sourcesContent":["import { AuthPageContainer } from '@affine/component/auth-components';\nimport { Button } from '@affine/component/ui/button';\nimport { useSubscriptionNotifyWriter } from '@affine/core/hooks/affine/use-subscription-notify';\nimport { useNavigateHelper } from '@affine/core/hooks/use-navigate-helper';\nimport { Trans, useI18n } from '@affine/i18n';\nimport { type ReactNode, useCallback } from 'react';\nimport { useSearchParams } from 'react-router-dom';\n\nimport * as styles from './styles.css';\n\nconst UpgradeSuccessLayout = ({\n title,\n description,\n}: {\n title?: ReactNode;\n description?: ReactNode;\n}) => {\n const t = useI18n();\n const [params] = useSearchParams();\n\n const { jumpToIndex, openInApp } = useNavigateHelper();\n const openAffine = useCallback(() => {\n if (params.get('schema')) {\n openInApp(params.get('schema') ?? 'affine', 'bring-to-front');\n } else {\n jumpToIndex();\n }\n }, [jumpToIndex, openInApp, params]);\n\n const subtitle = (\n