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AACC,KAAK,K,GACf,UAACC,EAAAA,EAAUA,CAAAA,C,SACT,UAACtC,EAAYA,CAAAA,E,GAEf,UAACuC,EAAAA,EAAQA,CAAAA,C,SACP,UAAC5B,MAAAA,CAAI6B,UCvEK,Y,SDwEPnB,EAAKoB,MAAM,CAAG,EACb,UAACC,EAAAA,EAAkBA,CAAAA,CACjBrB,KAAMA,EACNM,SAAUA,EACVG,YAAaA,C,GAGf,UAACa,EAAAA,EAAYA,CAAAA,CAACC,QAAS,UAACvC,EAAAA,CAAAA,E,OAI9B,UAACwC,EAAAA,EAAqBA,CAAAA,CACpB9B,KAAMA,EACNC,aAAca,EACdJ,eAAgBA,C,KAIxB,EAEaqB,EAAY,IAChB,UAAC7B,EAAAA,CAAAA,E","sources":["webpack://@affine/web/../core/src/pages/workspace/all-tag/header.tsx","webpack://@affine/web/../core/src/pages/workspace/all-tag/index.tsx","webpack://@affine/web/../core/src/pages/workspace/all-tag/all-tag.css.ts"],"sourcesContent":["import { Header } from '@affine/core/components/pure/header';\nimport { WorkspaceModeFilterTab } from '@affine/core/components/pure/workspace-mode-filter-tab';\n\nexport const AllTagHeader = () => {\n return
} />;\n};\n","import {\n TagListHeader,\n VirtualizedTagList,\n} from '@affine/core/components/page-list/tags';\nimport { CreateOrEditTag } from '@affine/core/components/page-list/tags/create-tag';\nimport type { TagMeta } from '@affine/core/components/page-list/types';\nimport { DeleteTagConfirmModal, TagService } from '@affine/core/modules/tag';\nimport { useI18n } from '@affine/i18n';\nimport { useLiveData, useService } from '@toeverything/infra';\nimport { useCallback, useState } from 'react';\n\nimport {\n ViewBody,\n ViewHeader,\n ViewIcon,\n ViewTitle,\n} from '../../../modules/workbench';\nimport { EmptyTagList } from '../page-list-empty';\nimport * as styles from './all-tag.css';\nimport { AllTagHeader } from './header';\n\nconst EmptyTagListHeader = () => {\n const [showCreateTagInput, setShowCreateTagInput] = useState(false);\n const handleOpen = useCallback(() => {\n setShowCreateTagInput(true);\n }, [setShowCreateTagInput]);\n\n return (\n
\n \n \n
\n );\n};\n\nexport const AllTag = () => {\n const tagList = useService(TagService).tagList;\n const tags = useLiveData(tagList.tags$);\n const [open, setOpen] = useState(false);\n const [selectedTagIds, setSelectedTagIds] = useState([]);\n\n const tagMetas: TagMeta[] = useLiveData(tagList.tagMetas$);\n\n const handleCloseModal = useCallback(\n (open: boolean) => {\n setOpen(open);\n setSelectedTagIds([]);\n },\n [setOpen]\n );\n\n const onTagDelete = useCallback(\n (tagIds: string[]) => {\n setOpen(true);\n setSelectedTagIds(tagIds);\n },\n [setOpen, setSelectedTagIds]\n );\n\n const t = useI18n();\n\n return (\n <>\n \n \n \n \n \n \n
\n {tags.length > 0 ? (\n \n ) : (\n } />\n )}\n
\n
\n \n \n );\n};\n\nexport const Component = () => {\n return ;\n};\n","import \"../core/src/pages/workspace/all-tag/all-tag.css.ts.vanilla.css!=!../../../../../../../node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\\\"fileName\\\":\\\"../core/src/pages/workspace/all-tag/all-tag.css.ts.vanilla.css\\\",\\\"source\\\":\\\"Ll8xbmNnYjJ5MCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGZsZXg6IDE7CiAgaGVpZ2h0OiAxMDAlOwogIHdpZHRoOiAxMDAlOwp9\\\"}!../../../../../../../node_modules/@vanilla-extract/webpack-plugin/extracted.js\"\nexport var body = '_1ncgb2y0';"],"names":["AllTagHeader","Header","center","WorkspaceModeFilterTab","activeFilter","EmptyTagListHeader","showCreateTagInput","setShowCreateTagInput","useState","handleOpen","useCallback","div","TagListHeader","onOpen","CreateOrEditTag","open","onOpenChange","AllTag","tagList","useService","TagService","tags","useLiveData","tags$","setOpen","selectedTagIds","setSelectedTagIds","tagMetas","tagMetas$","handleCloseModal","onTagDelete","tagIds","t","useI18n","ViewTitle","title","ViewIcon","icon","ViewHeader","ViewBody","className","length","VirtualizedTagList","EmptyTagList","heading","DeleteTagConfirmModal","Component"],"sourceRoot":""}