n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.58 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","./core-legacy-VD8c7QJ-.js","./src-legacy-B67uuxhB.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js","./usePageRedirectionHelper-legacy-DQM99rgh.js"],(function(e,t){var n,a,o,s,i,d,l,u,r,c,g,f,b,m,p,w,y,h,T,x;return{setters:[function(e){n=e.I,a=e.S},function(e){o=e.at},function(e){s=e.lt},function(e){i=e.Et,d=e.Ln,l=e.Pn,u=e.Tr,r=e.fr,c=e.js,g=e.oa,f=e.r,b=e.ra,m=e.s,p=e.to},function(e){w=e.Qc,y=e.Qo,e.ys},function(e){h=e.t},function(e){T=e.t},function(e){x=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(D=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[D]="5e589327-200e-4dd0-95f8-38d876fbc45f",t._sentryDebugIdIdentifier="sentry-dbid-5e589327-200e-4dd0-95f8-38d876fbc45f")}catch(t){}var t,D;e("t",(e=>{const t=r(),D=s(),E=o(),v=d(),I=l(),M=m(),j=a((()=>M.workflowId?g(b(M.workflowId)):void 0)),_=e??i(),k=T(),N=f(),V=x(),A=a((()=>k.isEnterpriseFeatureEnabled[w.DebugInEditor]));return{applyExecutionData:async e=>{const a=await M.getExecution(e),o=M.workflowObject,s=j.value?.getNodes()??[];if(!a?.data?.resultData)return;const{runData:i}=a.data.resultData,d=Object.keys(i),l=d.filter((e=>!s.some((t=>t.name===e)))),r=Object.keys(j.value?.pinData??{}),g=d.filter((e=>r.includes(e)));if(g.length>0){const t=n("p",[E.baseText("nodeView.confirmMessage.debug.message"),n("ul",{class:"mt-l ml-l"},g.map((e=>n("li",c(e)))))]);if("confirm"!==await v.confirm(t,E.baseText("nodeView.confirmMessage.debug.headline"),{type:"warning",confirmButtonText:E.baseText("nodeView.confirmMessage.debug.confirmButtonText"),cancelButtonText:E.baseText("nodeView.confirmMessage.debug.cancelButtonText"),customClass:"matching-pinned-nodes-confirmation"}))return void(await D.push({name:y.EXECUTION_PREVIEW,params:{name:o.id,executionId:e}}));g.forEach((e=>{j.value?.unpinNodeData(e)}))}j.value?.resetAllNodesIssues(),_.setWorkflowExecutionData(a);const f=s.filter((e=>!o.getParentNodes(e.name).length));let b=0;f.forEach((e=>{const t=i[e.name]?.[0];if(t?.data?.main){const n=t.data.main.find((e=>e&&e.length>0));n&&(b++,j.value?.pinNodeData(e.name,n),M.nodeMetadata[e.name]&&(delete M.nodeMetadata[e.name].pinnedDataLastUpdatedAt,delete M.nodeMetadata[e.name].pinnedDataLastRemovedAt))}})),I.showToast({title:E.baseText("nodeView.showMessage.debug.title"),message:E.baseText("nodeView.showMessage.debug.content"),type:"info"}),l.length&&I.showToast({title:E.baseText("nodeView.showMessage.debug.missingNodes.title"),message:E.baseText("nodeView.showMessage.debug.missingNodes.content",{interpolate:{nodeNames:l.join(", ")}}),type:"warning"}),t.track("User clicked debug execution button",{instance_id:h().instanceId,exec_status:u(a)?a.status:"",override_pinned_data:f.length===b,all_exec_data_imported:0===l.length})},handleDebugLinkClick:e=>{if(!A.value)return N.openModalWithData({name:p,data:{title:E.baseText("executionsList.debug.paywall.title"),footerButtonAction:()=>{N.closeModal(p),V.goToUpgrade("debug","upgrade-debug")}}}),e.preventDefault(),void e.stopPropagation();M.isInDebugMode=!1}}}))}}}));
//# sourceMappingURL=useExecutionDebugging-legacy-C-EJDcXH.js.map