n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 5.61 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(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./sanitize-html-legacy-ChR3ikxn.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./merge-legacy-uu1aGqHK.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./dateformat-legacy-BxdD_OP7.js","./useDebounce-legacy-CT3oYGrC.js","./executions.store-legacy-z6ytCHo9.js","./uniqBy-legacy-DmwIYJPs.js","./nodeIcon-legacy-CU0X8703.js","./nodeTransforms-legacy-CEnqyD1g.js","./templateTransforms-legacy-bPWknje4.js","./NodeIcon-legacy-B4uktMo3.js","./values-legacy-Dt9OIjG1.js","./RecommendedTemplateCard-legacy-roRfB9PI.js","./WorkflowPreview-legacy-DP8CfnLP.js","./templateActions-legacy-CUe9p3Wy.js","./TemplatesView-legacy--TC0rG3N.js"],(function(e,t){var n,a,l,o,s,i,c,r,d,u,p,m,f,g,_,y,v,w,b,h,j,x,T,k,C,I,$,D,B,E,F,S,W,A,N,R;return{setters:[function(e){n=e.$,a=e.A,l=e.C,o=e.Ft,s=e.N,i=e.O,c=e.S,r=e.Sn,d=e.T,u=e.Wt,p=e.X,m=e._n,f=e.gt,g=e.h,_=e.j,y=e.q,v=e.w,w=e.yt},function(e){b=e.bt},function(e){h=e.Q,j=e.Qi,x=e.Zi,T=e._t,k=e.gt},function(e){C=e.t},function(e){},function(e){I=e.Dn,$=e.Dr,D=e.en,B=e.vn,E=e.w},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){F=e.t},function(e){S=e.t},function(e){W=e.n},function(e){A=e.t}],execute:function(){(N=document.createElement("style")).textContent="._notFound_1t3tp_125{padding-top:var(--spacing--sm)}._previewWrapper_1t3tp_129{position:relative}._image_1t3tp_133{border:var(--border);width:100%;height:500px;overflow:hidden}._image_1t3tp_133 img{width:100%}._button_1t3tp_143{bottom:var(--spacing--sm);z-index:var(--canvas-select-box--z);position:absolute;left:50%;transform:translate(-50%)}._contentContainer_1t3tp_151{max-width:var(--content-container--width);margin:var(--spacing--lg)auto 0;padding:0 var(--spacing--2xl)}._content_1t3tp_151{gap:var(--spacing--lg);display:flex}@media (max-width:768px){._content_1t3tp_151{display:block}}._templateCard_1t3tp_167{width:380px;top:var(--spacing--lg);flex-shrink:0;align-self:flex-start;position:sticky}@media (max-width:768px){._templateCard_1t3tp_167{width:100%;margin-bottom:var(--spacing--lg);position:static}}._markdown_1t3tp_182{min-width:0;margin-bottom:var(--spacing--lg);flex:1}\n/*$vite$:1*/",document.head.appendChild(N);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(z=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[z]="69fbb7ec-73b4-4e4d-b03c-5c9ecc0dccbd",t._sentryDebugIdIdentifier="sentry-dbid-69fbb7ec-73b4-4e4d-b03c-5c9ecc0dccbd")}catch(t){}var t,z;R=s({__name:"TemplatesWorkflowView",setup(e){const s=$(),C=I(),N=E(),R=k(),z=T(),P=D(),O=b(),V=B(),q=o(!0),H=o(!0),K=o(!1),M=o(!0),Q=o(null);let J=null;const L=c((()=>Array.isArray(R.params.id)?R.params.id[0]:R.params.id)),X=c((()=>C.getFullTemplateById(L.value))),Y=()=>{H.value=!1};f((()=>X.value),(e=>{e?V.set(`Template template: ${e.name}`):V.set("Templates")})),f(Q,(e=>{J&&(J.disconnect(),J=null),e&&(J=new IntersectionObserver((e=>{for(const t of e)M.value=t.isIntersecting}),{threshold:0}),J.observe(e))}),{immediate:!0}),p((async()=>{if((()=>{const e=document.getElementById("content");e&&e.scrollTo({top:0})})(),X.value?.full)q.value=!1;else{try{await C.fetchTemplateById(L.value)}catch(t){K.value=!0}q.value=!1}})),y((()=>{J&&(J.disconnect(),J=null)}));const Z=c((()=>{if(X.value?.workflow)return X.value.readyToDemo?X.value.workflow:{...X.value.workflow,pinData:{}}}));return(e,t)=>(n(),v(A,{"full-width":!0},i({_:2},[K.value?{name:"header",fn:w((()=>[l("div",{class:m(e.$style.notFound)},[_(u(x),{color:"text-base"},{default:w((()=>[a(r(u(O).baseText("templates.workflowsNotFound")),1)])),_:1})],2)])),key:"0"}:void 0,K.value?void 0:{name:"content",fn:w((()=>[l("div",{class:m(e.$style.previewWrapper)},[l("div",{class:m(e.$style.image)},[H.value?(n(),v(S,{key:0,loading:q.value,workflow:Z.value,onClose:Y},null,8,["loading","workflow"])):d("",!0)],2)],2),l("div",{class:m(e.$style.contentContainer)},[l("div",{class:m(e.$style.content)},[l("div",{class:m(e.$style.templateCard)},[X.value?(n(),v(F,{key:0,template:X.value,"show-details":!0},{belowContent:w((()=>[_(u(j),{"data-test-id":"use-template-button",label:u(O).baseText("template.buttons.tryTemplate"),size:"large",onClick:t[0]||(t[0]=g((e=>(async(e,t)=>{await W({router:z,templateId:e,inNewBrowserTab:t.metaKey||t.ctrlKey,externalHooks:s,nodeTypesStore:N,telemetry:P,templatesStore:C,source:"template_preview"})})(L.value,e)),["stop"]))},null,8,["label"])])),_:1},8,["template"])):d("",!0)],2),l("div",{class:m(e.$style.markdown),"data-test-id":"template-description"},[_(u(h),{content:X.value?.description,images:X.value?.image,loading:q.value},null,8,["content","images","loading"])],2)],2)],2)])),key:"1"}]),1024))}}),e("default",C(R,[["__cssModules",{$style:{notFound:"_notFound_1t3tp_125",previewWrapper:"_previewWrapper_1t3tp_129",image:"_image_1t3tp_133",button:"_button_1t3tp_143",contentContainer:"_contentContainer_1t3tp_151",content:"_content_1t3tp_151",templateCard:"_templateCard_1t3tp_167",markdown:"_markdown_1t3tp_182"}}]]))}}}));
//# sourceMappingURL=TemplatesWorkflowView-legacy-CAlBwJm-.js.map