n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.68 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","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./useRootStore-legacy-CC08el-l.js","./WorkflowDiffView-legacy-BGVCN6X6.js"],(function(e,t){var n,o,i,a,l,f,d,r,s,c,u,w,y,g,b,p;return{setters:[function(e){n=e.$,o=e.C,i=e.E,a=e.Ft,l=e.N,f=e.Sn,d=e.Wt,r=e.X,s=e.Z,c=e._n,u=e.w},function(e){w=e.at},function(e){y=e.t},function(e){g=e.t},function(e){b=e.t}],execute:function(){(p=document.createElement("style")).textContent="._demoDiffView_t8kr6_125{flex-direction:column;width:100%;height:100%;display:flex}._waitingState_t8kr6_132{height:100%;color:var(--color--text--tint-1);justify-content:center;align-items:center;display:flex}\n/*$vite$:1*/",document.head.appendChild(p);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(v=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[v]="a36adcfa-4e2c-4caf-a763-26c93edbd415",t._sentryDebugIdIdentifier="sentry-dbid-a36adcfa-4e2c-4caf-a763-26c93edbd415")}catch(t){}var t,v;e("default",y(l({__name:"DemoDiffView",setup(e){const l=g(),y=w(),p=a(void 0),v=a(void 0),_=a(!1);function m(e){return null==e||"object"==typeof e&&"nodes"in e&&"connections"in e}async function k(e){if(e&&"string"==typeof e.data&&e.data?.includes?.('"command"'))try{const t=JSON.parse(e.data);if(t&&"openDiff"===t.command){if(!m(t.oldWorkflow)||!m(t.newWorkflow))return;p.value=t.oldWorkflow??void 0,v.value=t.newWorkflow??void 0,_.value=!0===t.tidyUp}}catch(t){}}return r((()=>{window.addEventListener("message",k),window.parent&&window.parent.postMessage(JSON.stringify({command:"n8nReady",version:l.versionCli}),"*")})),s((()=>{window.removeEventListener("message",k)})),(e,t)=>(n(),i("div",{class:c(e.$style.demoDiffView)},[p.value||v.value?(n(),u(b,{key:0,"source-workflow":p.value,"target-workflow":v.value,"source-label":d(y).baseText("workflowDiff.label.before"),"target-label":d(y).baseText("workflowDiff.label.after"),"tidy-up":_.value},null,8,["source-workflow","target-workflow","source-label","target-label","tidy-up"])):(n(),i("div",{key:1,class:c(e.$style.waitingState)},[o("p",null,f(d(y).baseText("workflowDiff.waitingForData")),1)],2))],2))}}),[["__cssModules",{$style:{demoDiffView:"_demoDiffView_t8kr6_125",waitingState:"_waitingState_t8kr6_132"}}]]))}}}));
//# sourceMappingURL=DemoDiffView-legacy-D6E5MmDt.js.map