n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.52 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(["./_MapCache-legacy-DwgdC8YO.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./versions.store-legacy-BoVYiMEK.js"],(function(e,t){var n,a,o,i,s,r,c,d,l;return e("t",(function(){const e=c(),t=s(),u=l(),f=i(),g=a(),y=async(n,a)=>{let o=d;e.isInstanceOwner&&g.isCloudDeployment&&(o=await t.generateCloudDashboardAutoLoginLink({redirectionPath:"/account/change-plan"}));const i=new URL(o);return a&&i.searchParams.set("utm_campaign",a),n&&i.searchParams.set("source",n),i.toString()};return{goToDashboard:async()=>{if(e.isInstanceOwner&&g.isCloudDeployment){const e=await t.generateCloudDashboardAutoLoginLink({redirectionPath:"/dashboard"});location.href=e}},goToVersions:async()=>{let n=u.infoUrl;e.isInstanceOwner&&g.isCloudDeployment&&(n=await t.generateCloudDashboardAutoLoginLink({redirectionPath:"/manage"})),location.href=n},goToUpgrade:async(e,a,i="open")=>{if(!(await async function(){const e=o();if(!e.streaming)return!0;const{confirm:t}=r(),a=n();return"confirm"===await t(a.baseText("aiAssistant.builder.upgradeWhileStreaming.message"),{title:a.baseText("aiAssistant.builder.upgradeWhileStreaming.title"),type:"warning",confirmButtonText:a.baseText("aiAssistant.builder.upgradeWhileStreaming.confirmButtonText"),cancelButtonText:a.baseText("aiAssistant.builder.upgradeWhileStreaming.cancelButtonText"),showClose:!0})&&(e.abortStreaming(),!0)}()))return;const{usageLeft:s,trialDaysLeft:c,userIsTrialing:d}=t,{executionsLeft:l,workflowsLeft:u}=s,b=g.deploymentType;f.track("User clicked upgrade CTA",{source:e,isTrial:d,deploymentType:b,trialDaysLeft:c,executionsLeft:l,workflowsLeft:u});const p=await y(e,a);"open"===i?window.open(p,"_blank"):location.href=p}}})),{setters:[function(e){n=e.bt},function(e){a=e.As,o=e.cn,i=e.en,s=e.hr,r=e.jr,c=e.t},function(e){e.Ps,d=e.b},function(e){l=e.t}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(t=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bde863ac-5dc3-4986-8d0a-2394fce7c8b6",e._sentryDebugIdIdentifier="sentry-dbid-bde863ac-5dc3-4986-8d0a-2394fce7c8b6")}catch(e){}var e,t}}}));
//# sourceMappingURL=usePageRedirectionHelper-legacy-dYzA8Va8.js.map