import{d as u,j as t,a as d,_ as n}from"./index-b983ad9b.js";/* empty css                */import{i as _,j as g,r as s}from"./react-b0e0d18a.js";import{G as o}from"./antd-8ca2e36c.js";const T="_page_9o5d2_1",f={page:T},{TabPane:i}=o,b=s.lazy(()=>n(()=>import("./TriggerList-72e7063d.js"),["./TriggerList-72e7063d.js","./index-b983ad9b.js","./react-b0e0d18a.js","./antd-8ca2e36c.js","./index-a8abcf49.css","./Room-7ae51b0a.js","./Room-74d2f679.css","./KB-757eebe4.js","./MonoEventTrigger-c155a44e.js","./index-ee32be98.js","./Select.module-b0cb8f14.js","./Select-802e23a6.css","./index-ce4cd664.css","./default-76b7cd8d.css","./index-8777399d.css","./index-3c2820ea.css","./index-804d7e9f.css","./MeasurementSelect-f0aadfd3.js","./MeasurementSelect-cb8c33e0.css","./TriggerList-2f151c04.css","./index-abe611e6.css","./index-61bdd673.css","./index-029e7fc6.css","./index-50ebf7c8.css","./index-2e40ceaa.css","./index-9368394d.css","./index-11c46f0a.css","./index-764a06d4.css","./index-97cb01cf.css"],import.meta.url)),v=s.lazy(()=>n(()=>import("./TriggerSetting-c8c5e754.js").then(a=>a.T),["./TriggerSetting-c8c5e754.js","./index-b983ad9b.js","./react-b0e0d18a.js","./antd-8ca2e36c.js","./index-a8abcf49.css","./TriggerSetting-679b8889.css","./default-76b7cd8d.css","./index-8777399d.css"],import.meta.url));function j(){const{tabId:a}=_(),c=g(),[r,l]=s.useState(0),{user:e}=u(),m=s.useMemo(()=>{if(!e)return!1;if(e.roles&&e.roles.includes("admin")||e.permissions&&e.permissions.includes("gsen.admin"))return!0},[e==null?void 0:e.permissions,e==null?void 0:e.roles]);return t("div",{className:f.page,children:d(o,{activeKey:a,onTabClick:p=>{c(`../${p}`,{replace:!0}),l(Date.now())},children:[t(i,{tab:"规则列表",children:t(b,{update:r})},"list"),m?t(i,{tab:"规则设置",children:t(v,{update:r})},"setting"):null]})})}export{j as default};
