n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.56 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(["./core-legacy-VD8c7QJ-.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./settings.store-legacy-I6rZOvfF.js","./versions.store-legacy-4XCrklbY.js"],(function(e,t){var n,a,o,i,s,r,c,l,u;return e("t",(function(){const e=r(),t=o(),d=u(),f=s(),g=l(),b=async(n,a)=>{let o=c;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=d.infoUrl;e.isInstanceOwner&&g.isCloudDeployment&&(n=await t.generateCloudDashboardAutoLoginLink({redirectionPath:"/manage"})),location.href=n},goToUpgrade:async(e,o,s="open")=>{if(!(await async function(){const e=i();if(!e.streaming)return!0;const{confirm:t}=a(),o=n();return"confirm"===await t(o.baseText("aiAssistant.builder.upgradeWhileStreaming.message"),{title:o.baseText("aiAssistant.builder.upgradeWhileStreaming.title"),type:"warning",confirmButtonText:o.baseText("aiAssistant.builder.upgradeWhileStreaming.confirmButtonText"),cancelButtonText:o.baseText("aiAssistant.builder.upgradeWhileStreaming.cancelButtonText"),showClose:!0})&&(e.abortStreaming(),!0)}()))return;const{usageLeft:r,trialDaysLeft:c,userIsTrialing:l}=t,{executionsLeft:u,workflowsLeft:d}=r,y=g.deploymentType;f.track("User clicked upgrade CTA",{source:e,isTrial:l,deploymentType:y,trialDaysLeft:c,executionsLeft:u,workflowsLeft:d});const p=await b(e,o);"open"===s?window.open(p,"_blank"):location.href=p}}})),{setters:[function(e){n=e.at},function(e){a=e.Ln,o=e.Nn,i=e.Ot,s=e.fr,r=e.t},function(e){c=e._,e.ys},function(e){l=e.t},function(e){u=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]="b865b473-5db6-4a68-b1f2-78b018b24b09",e._sentryDebugIdIdentifier="sentry-dbid-b865b473-5db6-4a68-b1f2-78b018b24b09")}catch(e){}var e,t}}}));
//# sourceMappingURL=usePageRedirectionHelper-legacy-DQM99rgh.js.map