n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.91 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","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js"],(function(e,a){var t,n,i,s,o,l,r,u,g,d,c,f;return{setters:[function(e){t=e.Nt,n=e.S},function(e){i=e.T,s=e.t},function(e){o=e.A,l=e.D,r=e.O,u=e.j,g=e.k,d=e.t}],execute:function(){try{a="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(v=(new a.Error).stack)&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[v]="31ad3308-922f-48eb-a303-997f66e8cacc",a._sentryDebugIdIdentifier="sentry-dbid-31ad3308-922f-48eb-a303-997f66e8cacc")}catch(a){}var a,v;f={loading:!0,data:{usage:{activeWorkflowTriggers:{limit:-1,value:0,warningThreshold:.8},workflowsHavingEvaluations:{value:0,limit:0}},license:{planId:"",planName:c="Community"}}},e("t",i("usage",(()=>{const e=s(),a=d(),i=t({...f}),v=n((()=>i.data.license.planName||c)),w=n((()=>i.data.license.planId)),y=n((()=>i.data.usage.activeWorkflowTriggers.limit)),m=n((()=>i.data.usage.activeWorkflowTriggers.value)),p=n((()=>i.data.usage.workflowsHavingEvaluations.limit)),T=n((()=>i.data.usage.workflowsHavingEvaluations.value)),b=n((()=>m.value/y.value*100)),k=n((()=>a.settings.instanceId)),h=n((()=>i.data.managementToken)),E=n((()=>a.settings.versionCli)),C=n((()=>`instanceid=${k.value}&version=${E.value}`)),I=n((()=>"production"===a.settings.license.environment?"https://subscription.n8n.io":"https://staging-subscription.n8n.io")),L=e=>{i.data=e},W=async()=>{L(await r(e.restApiContext))};return{setLoading:e=>{i.loading=e},getLicenseInfo:W,setData:L,activateLicense:async(t,n)=>{L(await l(e.restApiContext,{activationKey:t,eulaUri:n})),await a.getSettings(),await a.getModuleSettings()},refreshLicenseManagementToken:async()=>{try{L(await o(e.restApiContext))}catch(a){await W()}},requestEnterpriseLicenseTrial:async()=>{await u(e.restApiContext)},registerCommunityEdition:async a=>await g(e.restApiContext,{email:a}),planName:v,planId:w,activeWorkflowTriggersLimit:y,activeWorkflowTriggersCount:m,workflowsWithEvaluationsLimit:p,workflowsWithEvaluationsCount:T,executionPercentage:b,instanceId:k,managementToken:h,appVersion:E,isCloseToLimit:n((()=>!(i.data.usage.activeWorkflowTriggers.limit<0)&&m.value/y.value>=i.data.usage.activeWorkflowTriggers.warningThreshold)),viewPlansUrl:n((()=>`${I.value}?${C.value}`)),managePlanUrl:n((()=>`${I.value}/manage?token=${h.value}&${C.value}`)),isLoading:n((()=>i.loading)),telemetryPayload:n((()=>({instance_id:k.value,action:"view_plans",plan_name_current:v.value,usage:m.value,quota:y.value})))}})))}}}));
//# sourceMappingURL=usage.store-legacy-C8awUz5T.js.map