n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.77 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","./src-legacy-B67uuxhB.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./dateFormatter-legacy-C29N6HGV.js"],(function(e,t){var n,s,a,i,o;return e("t",(function(){const e=n(),t=s(),r=a();function u(t){const{date:n,time:s}=o(t);return e.baseText("executionsList.started",{interpolate:{time:s,date:n}})}return{getUIDetails:function(t){const n={name:"unknown",createdAt:t.createdAt?.toString()??"",startTime:u(t.startedAt??t.createdAt),label:"Status unknown",runningTime:"",showTimestamp:!0,tags:t.annotation?.tags??[]};if("new"===t.status?(n.name="new",n.label=e.baseText("executionsList.new"),n.showTimestamp=!1):"waiting"===t.status?(n.name="waiting",n.label=e.baseText("executionsList.waiting"),n.showTimestamp=!1):"canceled"===t.status?n.label=e.baseText("executionsList.canceled"):"running"===t.status?(n.name="running",n.label=e.baseText("executionsList.running")):"success"===t.status?(n.name="success",n.label=e.baseText("executionsList.succeeded")):"error"!==t.status&&"crashed"!==t.status||(n.name="error",n.label=e.baseText("executionsList.error")),t.status||(t.status="unknown"),t.startedAt&&t.stoppedAt){const s=t.stoppedAt?new Date(t.stoppedAt).getTime():Date.now();n.runningTime=e.displayTimer(s-new Date(t.startedAt).getTime(),!0)}return n},formatDate:u,isExecutionRetriable:function(e){return["crashed","error"].includes(e.status)&&!e.retrySuccessId},openExecutionInNewTab:function(e,n){const s=t.resolve({name:i.EXECUTION_PREVIEW,params:{name:n,executionId:e}});window.open(s.href,"_blank")},trackOpeningRelatedExecution:function(e,t){(e.parentExecution||e.subExecution)&&r.track(e.parentExecution?"User clicked parent execution button":"User clicked inspect sub-workflow",{view:t})},resolveRelatedExecutionUrl:function(e){const n=e.parentExecution||e.subExecution;if(!n)return"";const{workflowId:s,executionId:a}=n;return t.resolve({name:i.EXECUTION_PREVIEW,params:{name:s,executionId:a}}).fullPath}}})),{setters:[function(e){n=e.at},function(e){s=e.lt},function(e){a=e.fr},function(e){i=e.Qo},function(e){o=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]="38f2a822-4faa-4d27-88c5-f074a8a3f999",e._sentryDebugIdIdentifier="sentry-dbid-38f2a822-4faa-4d27-88c5-f074a8a3f999")}catch(e){}var e,t}}}));
//# sourceMappingURL=useExecutionHelpers-legacy-43gwTTrP.js.map