UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.5 kB
!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(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./usePageRedirectionHelper-legacy-dYzA8Va8.js"],(function(e,t){var n,a,s,o,i,d,l,r,c,u,g,f,b,m,p,w,y,h,T,x;return{setters:[function(e){n=e.I,a=e.S},function(e){s=e.bt},function(e){o=e._t},function(e){i=e.As,d=e.Tr,l=e.aa,r=e.ei,c=e.en,u=e.eo,g=e.in,f=e.jr,b=e.na,m=e.pl,p=e.r,w=e.s},function(e){e.Ps,y=e.ms,h=e.pl},function(e){T=e.r},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]="c80a68bc-7579-4713-a11b-a22015d8099b",t._sentryDebugIdIdentifier="sentry-dbid-c80a68bc-7579-4713-a11b-a22015d8099b")}catch(t){}var t,D;e("t",(e=>{const t=c(),D=o(),E=s(),_=f(),I=d(),M=w(),j=e??g(),k=i(),v=p(),N=x(),V=a((()=>k.isEnterpriseFeatureEnabled[h.DebugInEditor]));return{applyExecutionData:async e=>{const a=await M.getExecution(e),s=M.workflowObject,o=M.getNodes();if(!a?.data?.resultData)return;const{runData:i}=a.data.resultData,d=Object.keys(i),c=d.filter((e=>!o.some((t=>t.name===e)))),u=M.workflowId?l(b(M.workflowId)):void 0,g=Object.keys(u?.pinData??{}),f=d.filter((e=>g.includes(e)));if(f.length>0){const t=n("p",[E.baseText("nodeView.confirmMessage.debug.message"),n("ul",{class:"mt-l ml-l"},f.map((e=>n("li",m(e)))))]);if("confirm"!==await _.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:s.id,executionId:e}}));f.forEach((e=>{u?.unpinNodeData(e)}))}j.resetAllNodesIssues(),j.setWorkflowExecutionData(a);const p=o.filter((e=>!s.getParentNodes(e.name).length));let w=0;p.forEach((e=>{const t=i[e.name]?.[0];if(t?.data?.main){const n=t.data.main.find((e=>e&&e.length>0));n&&(w++,u?.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"}),c.length&&I.showToast({title:E.baseText("nodeView.showMessage.debug.missingNodes.title"),message:E.baseText("nodeView.showMessage.debug.missingNodes.content",{interpolate:{nodeNames:c.join(", ")}}),type:"warning"}),t.track("User clicked debug execution button",{instance_id:T().instanceId,exec_status:r(a)?a.status:"",override_pinned_data:p.length===w,all_exec_data_imported:0===c.length})},handleDebugLinkClick:e=>{if(!V.value)return v.openModalWithData({name:u,data:{title:E.baseText("executionsList.debug.paywall.title"),footerButtonAction:()=>{v.closeModal(u),N.goToUpgrade("debug","upgrade-debug")}}}),e.preventDefault(),void e.stopPropagation();M.isInDebugMode=!1}}}))}}})); //# sourceMappingURL=useExecutionDebugging-legacy-C2ezYLPm.js.map