"use strict";(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[4861],{24861:(e,s,a)=>{a.r(s),a.d(s,{AllTag:()=>p,Component:()=>C});var t=a(36870),n=a(32342),l=a(92685),i=a(81527),g=a(24312),c=a(10980),j=a(61569),x=a(86326),h=a(84064),r=a(11352),u=a(65423),d=a(26798);let o=()=>(0,t.jsx)(u.Y,{center:(0,t.jsx)(d.w,{activeFilter:"tags"})}),b=()=>{let[e,s]=(0,x.useState)(!1),a=(0,x.useCallback)(()=>{s(!0)},[s]);return(0,t.jsxs)("div",{children:[(0,t.jsx)(n.I6,{onOpen:a}),(0,t.jsx)(l.i,{open:e,onOpenChange:s})]})},p=()=>{let e=(0,c.h1)(i.w6).tagList,s=(0,j.S)(e.tags$),[a,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)([]),p=(0,j.S)(e.tagMetas$),C=(0,x.useCallback)(e=>{l(e),d([])},[l]),k=(0,x.useCallback)(e=>{l(!0),d(e)},[l,d]),w=(0,g.s9)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.EY,{title:w.Tags()}),(0,t.jsx)(h.tC,{icon:"tag"}),(0,t.jsx)(h.XP,{children:(0,t.jsx)(o,{})}),(0,t.jsx)(h.s$,{children:(0,t.jsx)("div",{className:"_1ncgb2y0",children:s.length>0?(0,t.jsx)(n.iH,{tags:s,tagMetas:p,onTagDelete:k}):(0,t.jsx)(r.K3,{heading:(0,t.jsx)(b,{})})})}),(0,t.jsx)(i.nI,{open:a,onOpenChange:C,selectedTagIds:u})]})},C=()=>(0,t.jsx)(p,{})}}]); //# sourceMappingURL=chunk.4861.fe5163a0.js.map