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AAAA,CAAIC,UCxEK,U,SDyEPa,EAAkBe,MAAM,CAAG,EAC1B,UAACC,EAAAA,EAAoBA,CAAAA,CAAAA,GAErB,UAACC,EAAAA,EAAaA,CAAAA,CACZC,KAAK,QACLtB,cAAeH,EAAiBG,aAAa,E,OAO3D,EAEauB,EAAY,IAChB,UAAC9B,EAAAA,CAAAA,E","sources":["webpack://@affine/web/../core/src/pages/workspace/trash-page.tsx","webpack://@affine/web/../core/src/pages/workspace/trash-page.css.ts"],"sourcesContent":["import {\n useFilteredPageMetas,\n VirtualizedTrashList,\n} from '@affine/core/components/page-list';\nimport { Header } from '@affine/core/components/pure/header';\nimport { useBlockSuiteDocMeta } from '@affine/core/hooks/use-block-suite-page-meta';\nimport { useI18n } from '@affine/i18n';\nimport { assertExists } from '@blocksuite/global/utils';\nimport { DeleteIcon } from '@blocksuite/icons/rc';\nimport {\n GlobalContextService,\n useService,\n WorkspaceService,\n} from '@toeverything/infra';\nimport { useEffect } from 'react';\n\nimport {\n useIsActiveView,\n ViewBody,\n ViewHeader,\n ViewIcon,\n ViewTitle,\n} from '../../modules/workbench';\nimport { EmptyPageList } from './page-list-empty';\nimport * as styles from './trash-page.css';\n\nconst TrashHeader = () => {\n const t = useI18n();\n return (\n \n \n {t['com.arms.workspaceSubPath.trash']()}\n \n }\n />\n );\n};\n\nexport const TrashPage = () => {\n const globalContextService = useService(GlobalContextService);\n const currentWorkspace = useService(WorkspaceService).workspace;\n const docCollection = currentWorkspace.docCollection;\n assertExists(docCollection);\n\n const pageMetas = useBlockSuiteDocMeta(docCollection);\n const filteredPageMetas = useFilteredPageMetas(pageMetas, {\n trash: true,\n });\n\n const isActiveView = useIsActiveView();\n\n useEffect(() => {\n if (isActiveView) {\n globalContextService.globalContext.isTrash.set(true);\n\n return () => {\n globalContextService.globalContext.isTrash.set(false);\n };\n }\n return;\n }, [globalContextService.globalContext.isTrash, isActiveView]);\n\n const t = useI18n();\n return (\n <>\n \n \n \n \n \n \n
\n {filteredPageMetas.length > 0 ? (\n \n ) : (\n \n )}\n
\n
\n \n );\n};\n\nexport const Component = () => {\n return ;\n};\n","import \"../core/src/pages/workspace/trash-page.css.ts.vanilla.css!=!../../../../../../node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\\\"fileName\\\":\\\"../core/src/pages/workspace/trash-page.css.ts.vanilla.css\\\",\\\"source\\\":\\\"Lmx2anQ2bDAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDhweDsKICBwYWRkaW5nOiAwIDhweDsKICBmb250LXdlaWdodDogNjAwOwogIHVzZXItc2VsZWN0OiBub25lOwp9Ci5sdmp0NmwxIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgZmxleDogMTsKICBoZWlnaHQ6IDEwMCU7CiAgd2lkdGg6IDEwMCU7Cn0KLmx2anQ2bDIgewogIGNvbG9yOiB2YXIoLS1hZmZpbmUtaWNvbi1jb2xvcik7CiAgZm9udC1zaXplOiB2YXIoLS1hZmZpbmUtZm9udC1oLTUpOwp9\\\"}!../../../../../../node_modules/@vanilla-extract/webpack-plugin/extracted.js\"\nexport var body = 'lvjt6l1';\nexport var trashIcon = 'lvjt6l2';\nexport var trashTitle = 'lvjt6l0';"],"names":["TrashHeader","t","useI18n","Header","left","div","className","DeleteIcon","TrashPage","globalContextService","useService","GlobalContextService","currentWorkspace","WorkspaceService","workspace","docCollection","assertExists","pageMetas","useBlockSuiteDocMeta","filteredPageMetas","useFilteredPageMetas","trash","isActiveView","useIsActiveView","useEffect","globalContext","isTrash","set","ViewTitle","title","ViewIcon","icon","ViewHeader","ViewBody","length","VirtualizedTrashList","EmptyPageList","type","Component"],"sourceRoot":""}