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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
\n {description}\n
\n \n ),\n }}\n />\n
\n
\n );\n\n return (\n \n \n \n );\n};\n\nexport const CloudUpgradeSuccess = () => {\n const t = useI18n();\n useSubscriptionNotifyWriter();\n return (\n \n );\n};\n\nexport const AIUpgradeSuccess = () => {\n const t = useI18n();\n useSubscriptionNotifyWriter();\n return (\n \n );\n};\n","import \"../core/src/components/affine/subscription-landing/styles.css.ts.vanilla.css!=!../../../../../../../node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\\\"fileName\\\":\\\"../core/src/components/affine/subscription-landing/styles.css.ts.vanilla.css\\\",\\\"source\\\":\\\"Ll8xOGk2am9sMCB7CiAgZm9udC1zaXplOiB2YXIoLS1hZmZpbmUtZm9udC1iYXNlKTsKICBmb250LXdlaWdodDogNDAwOwogIGxpbmUtaGVpZ2h0OiAxLjY7CiAgbWF4LXdpZHRoOiA1NDhweDsKfQouXzE4aTZqb2wxIHsKICBjb2xvcjogdmFyKC0tYWZmaW5lLWxpbmstY29sb3IpOwogIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKfQouXzE4aTZqb2wxOnZpc2l0ZWQgewogIGNvbG9yOiB2YXIoLS1hZmZpbmUtbGluay1jb2xvcik7Cn0=\\\"}!../../../../../../../node_modules/@vanilla-extract/webpack-plugin/extracted.js\"\nexport var leftContentText = '_18i6jol0';\nexport var mail = '_18i6jol1';"],"names":["UpgradeSuccessLayout","title","description","t","useI18n","params","useSearchParams","jumpToIndex","openInApp","useNavigateHelper","openAffine","useCallback","get","subtitle","div","className","Trans","i18nKey","components","a","href","AuthPageContainer","Button","variant","size","onClick","CloudUpgradeSuccess","useSubscriptionNotifyWriter","AIUpgradeSuccess"],"sourceRoot":""}