n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.29 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./core-legacy-VD8c7QJ-.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js","./insights.utils-legacy-DBZPnldI.js"],(function(e,t){var n,s,i,a,o,r,c,u,d,l,g,y,f;function b(e){if(!e)return;const{startDate:t,endDate:n,...s}=e,i={...s};return t&&(i.startDate=t.toISOString()),n&&(i.endDate=n.toISOString()),i}return{setters:[function(e){n=e.S},function(e){s=e.s},function(e){i=e.t},function(e){a=e.Bo},function(e){o=e.T,r=e.c,c=e.t},function(e){u=e.t},function(e){d=e.c}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(m=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[m]="c921435a-8eb6-4a56-8683-cb8093fe2aaf",t._sentryDebugIdIdentifier="sentry-dbid-c921435a-8eb6-4a56-8683-cb8093fe2aaf")}catch(t){}var t,m;l=async(e,t)=>await r(e,"GET","/insights/summary",b(t)),g=async(e,t)=>await r(e,"GET","/insights/by-time",b(t)),y=async(e,t)=>await r(e,"GET","/insights/by-time/time-saved",b(t)),f=async(e,t)=>await r(e,"GET","/insights/by-workflow",b(t)),e("t",o("insights",(()=>{const e=c(),t=i(),o=u(),r=n((()=>a(t.currentUser?.globalScopes).insights)),b=n((()=>o.isModuleActive("insights"))),m=n((()=>!!o.moduleSettings.insights?.dashboard));return{globalInsightsPermissions:r,isInsightsEnabled:b,isSummaryEnabled:n((()=>r.value.list&&b.value)),isDashboardEnabled:m,weeklySummary:s((async()=>d(await l(e.restApiContext))),[],{immediate:!1,resetOnExecute:!1}),summary:s((async t=>d(await l(e.restApiContext,t))),[],{immediate:!1,resetOnExecute:!1}),charts:s((async t=>await(m.value?g:y)(e.restApiContext,t)),[],{immediate:!1,resetOnExecute:!1}),table:s((async t=>await f(e.restApiContext,t)),{count:0,data:[]},{immediate:!1,resetOnExecute:!1}),dateRanges:n((()=>o.moduleSettings.insights?.dateRanges??[]))}})))}}}));
//# sourceMappingURL=insights.store-legacy-DUO1OIHA.js.map