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.13.4"}}catch(e){}}(),System.register(["./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./dateFormatter-legacy-CmupnmDm.js"],(function(e,t){var n,s,a,i,o;return e("t",(function(){const e=n(),t=s(),c=a();function r(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:r(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:r,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)&&c.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.bt},function(e){s=e._t},function(e){a=e.en},function(e){i=e.ms},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]="b8b7e941-81cc-44f9-9eb3-6748a2c661bd",e._sentryDebugIdIdentifier="sentry-dbid-b8b7e941-81cc-44f9-9eb3-6748a2c661bd")}catch(e){}var e,t}}}));
//# sourceMappingURL=useExecutionHelpers-legacy-L8nz8vaT.js.map