import{c as t,u as w,g as E,e as $,h as v,i as N,k as P,j as n,E as j,T as D,D as L}from"./index-Bsr9DJ3G.js";import{r as l}from"./vendor-DJo4KD8w.js";import{T as M}from"./ToolbarPanels-CPoZvoTB.js";import{u as k}from"./i18n-BbpF47i1.js";import"./routing-DCIgrT7s.js";import"./XMarkIcon-KMKD47CF.js";function W(){var c;const{t:g}=k(),e=(a,x)=>g(`ModerateEntityTags.${a}`,x),d=(c=t(w().activeSession$))==null?void 0:c.client,u=E(),s=$(()=>L(d,u)),p=t(s.browse.activePanel$)??null,T=t(s.entityTypes$)??[],i=t(s.isLoading$)??!0,m=t(s.newTag$)??"",h=t(s.error$)??"",b=t(s.isAdding$)??!1,{theme:y,setTheme:o}=v(),{showLineNumbers:f,toggleLineNumbers:r}=N();return P({"settings:theme-changed":l.useCallback(({theme:a})=>o(a),[o]),"settings:line-numbers-toggled":l.useCallback(()=>r(),[r])}),i?n.jsx("div",{className:"flex items-center justify-center py-20",children:n.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:e("loading")})}):n.jsx(j,{entityTypes:T,isLoading:i,error:h,newTag:m,onNewTagChange:s.setNewTag,onAddTag:s.addTag,isAddingTag:b,theme:y,showLineNumbers:f,activePanel:p,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),sectionTitle:e("sectionTitle"),sectionDescription:e("sectionDescription"),inputPlaceholder:e("inputPlaceholder"),addTag:e("addTag"),adding:e("adding")},ToolbarPanels:M,Toolbar:D})}export{W as default};
//# sourceMappingURL=page-BzkBmeDS.js.map
