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AqBC,EAAuB,CAAGC,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,IAEzD,CAACxE,EAASyE,EAAW,CAAGD,CAAAA,EAAAA,EAAAA,QAAAA,EAAmB,EAAE,EAC7CE,EAAoBC,CAAAA,EAAAA,EAAAA,EAAAA,EAAqBP,EAAW,CACxDpE,QAASA,CACX,GAEM4E,EAAeC,CAAAA,EAAAA,EAAAA,EAAAA,IAErBC,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACR,GAAIF,EAGF,OAFAV,EAAca,SAAS,CAACC,GAAG,CAAC,IAErB,KACLd,EAAca,SAAS,CAACC,GAAG,CAAC,GAC9B,CAGJ,EAAG,CAACd,EAAeU,EAAa,EAEhC,IAAMK,EAAIC,CAAAA,EAAAA,EAAAA,EAAAA,IAEV,MACE,uB,UACE,UAACC,EAAAA,EAASA,CAAAA,CAACC,MAAOH,CAAC,CAAC,YAAY,E,GAChC,UAACI,EAAAA,EAAQA,CAAAA,CAACC,KAAK,S,GACf,UAACC,EAAAA,EAAUA,CAAAA,C,SACT,UAACxD,EAAaA,CACZC,cAAe,CAACsC,EAChBtE,QAASA,EACTC,gBAAiBwE,C,KAGrB,UAACe,EAAAA,EAAQA,CAAAA,C,SACP,WAACtE,MAAAA,CAAIC,UDjEK,Y,UCkER,UAACpB,EAAeA,CAACC,QAASA,EAASC,gBAAiBwE,C,GACnDC,EAAkBzD,MAAM,CAAG,EAC1B,UAACwE,EAAAA,EAAmBA,CAAAA,CAClBC,2BAA4BnB,EAC5BvE,QAASA,C,GAGX,UAAC2F,EAAAA,EAAaA,CAAAA,CACZC,KAAK,MACLC,QAAS,UAACC,EAAAA,EAAcA,CAAAA,CAAAA,GACxBtE,cAAetB,EAAiBsB,aAAa,G,OAO3D,EAEauE,EAAY,KACvBC,EAAAA,EAAuBA,CAACC,KAAK,CAAC,WAEvB,UAAChC,EAAAA,CAAAA,G","sources":["webpack://@affine/web/../core/src/pages/workspace/all-page/all-page-filter.tsx","webpack://@affine/web/../core/src/components/filter-container.css.ts","webpack://@affine/web/../core/src/pages/workspace/all-page/all-page-header.tsx","webpack://@affine/web/../core/src/pages/workspace/all-page/all-page.css.ts","webpack://@affine/web/../core/src/pages/workspace/all-page/all-page.tsx"],"sourcesContent":["import { CollectionService } from '@affine/core/modules/collection';\nimport type { Collection, Filter } from '@affine/env/filter';\nimport { useService, WorkspaceService } from '@toeverything/infra';\nimport { useCallback } from 'react';\n\nimport { filterContainerStyle } from '../../../components/filter-container.css';\nimport {\n FilterList,\n SaveAsCollectionButton,\n} from '../../../components/page-list';\nimport { useNavigateHelper } from '../../../hooks/use-navigate-helper';\n\nexport const FilterContainer = ({\n filters,\n onChangeFilters,\n}: {\n filters: Filter[];\n onChangeFilters: (filters: Filter[]) => void;\n}) => {\n const currentWorkspace = useService(WorkspaceService).workspace;\n const navigateHelper = useNavigateHelper();\n const collectionService = useService(CollectionService);\n const saveToCollection = useCallback(\n (collection: Collection) => {\n collectionService.addCollection({\n ...collection,\n filterList: filters,\n });\n navigateHelper.jumpToCollection(currentWorkspace.id, collection.id);\n },\n [collectionService, filters, navigateHelper, currentWorkspace.id]\n );\n\n if (!filters.length) {\n return null;\n }\n\n return (\n