PageSourceSearch

https://n8n.io/_nuxt/Bw47HMuR.js

js n8n.io collected 2026-10-01 07:11:50 UTC 2,272 bytes, 1 lines download raw bytes

1import{d as e}from"./DZpMppuw.js";import{D as t,E as n,Kt as r,On as i,Qn as a,_ as o,k as s,mt as c,nr as l,qt as u,v as d,vn as f,y as p}from"./DBq4UlV4.js";import{t as m}from"./DEMPzsRR.js";import{R as h}from"./B3aJ4Pwu.js";import{n as g}from"./DT8m7Ebx.js";import{t as _}from"./CQwryYG-.js";import{t as v}from"./BA7fh6j4.js";import{t as y}from"./CAN6GQb7.js";import{t as b}from"./D-ubyW74.js";import{r as x,t as S}from"./CormVQvo.js";import{t as C}from"./B6m_HGMA.js";async function w(t){let{templatesWorkflowsApiUrl:n}=e().public.productApi;return g(`get-product-workflow-${t}`,()=>m(`${n}/${t}`),{immediate:!1,transform:e=>e.workflow})}var T={class:`flex w-full flex-col justify-between gap-6`},E={class:`flex w-full shrink-0 flex-row items-center justify-between gap-4`},D=s({__name:`WorkflowCard`,props:{workflowId:{default:void 0},cardVariant:{default:`default`},image:{default:void 0},external:{type:Boolean,default:!1},styles:{default:()=>({container:``,title:``,image:``})}},async setup(e){let s,D,O=e,k=_(`flex justify-between gap-4`,O?.styles?.container),A=_(`text-lg text-white`,O?.styles?.title),j=_(`w-full rounded-lg`,O?.styles?.image),M=f(),{data:N,execute:P}=g(`get-workflow-${O.workflowId}`,()=>m(`/api/workflows/by-id/${O.workflowId}`),{transform:e=>x(e,[`id`,`name`,`nodes`,`user`,`url`]),immediate:!1}),F=e=>{if(!e)return null;let{id:t,name:n,nodes:r,user:i}=e;return{id:t,name:n,nodes:r,user:i,url:h(t,n).url}},{data:I,execute:L}=([s,D]=r(()=>w(O.workflowId)),s=await s,D(),s);return O.external?([s,D]=r(()=>L()),await s,D(),I.value&&(M.value=F(I.value))):([s,D]=r(()=>P()),await s,D(),M.value=N.value),(r,s)=>{let f=v,m=b,h=S,g=C,_=y;return i(M)?(c(),d(_,{key:0,class:a([i(k),`min-h-40`]),variant:e.cardVariant,"link-to":i(M).url,padding:`semi`,rounding:`small`,overflow:`auto`},{default:u(()=>[o(`div`,T,[t(f,{tag:`h3`,class:a([i(A),`mb-1.5 line-clamp-2`])},{default:u(()=>[n(l(i(M).name),1)]),_:1},8,[`class`]),o(`div`,E,[t(m,{"workflow-nodes":i(M).nodes},null,8,[`workflow-nodes`]),t(h,{creator:i(M).user,"is-static":!0,"is-link":!1,"is-compact-layout":!0},null,8,[`creator`])])]),e.image?(c(),d(g,{key:0,img:e.image,lazy:!0,class:a(i(j))},null,8,[`img`,`class`])):p(``,!0)]),_:1},8,[`class`,`variant`,`link-to`])):p(``,!0)}}});export{D as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.