n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.24 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.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./insights.utils-legacy-uA0D6qm5.js"],(function(e,t){var n,s,i,a,r,o,d,c,u,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.x},function(e){i=e.As,a=e.t},function(e){r=e.is},function(e){o=e.d,d=e.j,c=e.r},function(e){u=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]="c520743d-0c74-4b74-a449-75ba47089638",t._sentryDebugIdIdentifier="sentry-dbid-c520743d-0c74-4b74-a449-75ba47089638")}catch(t){}var t,m;l=async(e,t)=>await o(e,"GET","/insights/summary",b(t)),g=async(e,t)=>await o(e,"GET","/insights/by-time",b(t)),y=async(e,t)=>await o(e,"GET","/insights/by-time/time-saved",b(t)),f=async(e,t)=>await o(e,"GET","/insights/by-workflow",b(t)),e("t",d("insights",(()=>{const e=c(),t=a(),o=i(),d=n((()=>r(t.currentUser?.globalScopes).insights)),b=n((()=>o.isModuleActive("insights"))),m=n((()=>!!o.moduleSettings.insights?.dashboard));return{globalInsightsPermissions:d,isInsightsEnabled:b,isSummaryEnabled:n((()=>d.value.list&&b.value)),isDashboardEnabled:m,weeklySummary:s((async()=>u(await l(e.restApiContext))),[],{immediate:!1,resetOnExecute:!1}),summary:s((async t=>u(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-CoDyKxkz.js.map