1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2062],{15655:(e,l,r)=>{r.d(l,{Y:()=>o});var t=r(95155),n=r(12115),s=r(22539),a=r(93658),d=r(64269),i=r(49551),c=r(46641);let o=(0,n.forwardRef)((e,l)=>{var r,o;let{className:u,selected:h,enableCollaborativeSelection:x=!0,style:m,...p}=e,f=(0,s.FC)(),j=(0,s.PF)(),y=(0,n.useRef)(null),{user:N}=(0,a.Jd)(),v=(0,i.fF)(),g=(0,i.VA)(),b=(0,n.useCallback)(e=>{y.current=e,"function"==typeof l?l(e):l&&(l.current=e)},[l]);(0,n.useEffect)(()=>{if(!f||!y.current)return;let e=y.current,l=requestAnimationFrame(()=>{try{j(f)}catch(e){}});if("undefined"==typeof ResizeObserver)return()=>cancelAnimationFrame(l);let r=new ResizeObserver(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{try{j(f)}catch(e){}})});return r.observe(e),()=>{r.disconnect(),cancelAnimationFrame(l)}},[f,j]);let A=(0,n.useMemo)(()=>x&&f?((e,l,r)=>{let t=Object.entries(l).filter(l=>{let[t,n]=l;return t!==r&&n.includes(e)}).map(e=>{let[l]=e;return l});if(t.length>0){let e=t[0],l=(0,c.Tm)(e);return{isSelectedByOthers:!0,selectingUsers:t.length,outlineColor:l,shadowColor:"".concat(l,"40")}}return{isSelectedByOthers:!1,selectingUsers:0,outlineColor:null,shadowColor:null}})(f,v,null==N?void 0:N.id):{isSelectedByOthers:!1,selectingUsers:0,outlineColor:null,shadowColor:null},[x,f,v,null==N?void 0:N.id]),k=null!=(o=null==(r=(0,n.useMemo)(()=>{var e;return f?(null!=(e=g[f])?e:[]).filter(e=>e.userId!==(null==N?void 0:N.id)):[]},[f,g,null==N?void 0:N.id])[0])?void 0:r.color)?o:null,w=(0,n.useMemo)(()=>A.isSelectedByOthers?{...m,outline:"3px solid ".concat(A.outlineColor),outlineOffset:"2px",boxShadow:"0 0 10px ".concat(A.shadowColor)}:k?{...m,outline:"2px solid ".concat(k),outlineOffset:"2px",boxShadow:"0 0 8px ".concat(k,"33")}:m,[m,A,k]);return(0,t.jsx)("div",{ref:b,className:(0,d.cn)("bg-card text-card-foreground relative rounded-md border p-5",u,h?"border-muted-foreground shadow-lg":"","hover:ring-1"),style:w,tabIndex:0,...p,children:p.children})});o.displayName="BaseNode"},20017:(e,l,r)=>{r.d(l,{A:()=>t});let t=(0,r(71847).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},20562:(e,l,r)=>{r.d(l,{A:()=>t});let t=(0,r(71847).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},37135:(e,l,r)=>{r.d(l,{A:()=>t});let t=(0,r(71847).A)("trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]])},57526:(e,l,r)=>{r.d(l,{P0:()=>h,hd:()=>u});var t=r(95155),n=r(12115),s=r(22539),a=r(20017),d=r(37135),i=r(86681),c=r(6259),o=r(46767);(0,n.forwardRef)((e,l)=>{let{tooltip:r,tooltipSide:n="top",label:s,...a}=e,d=(0,t.jsx)(i.gy,{ref:l,label:s,title:"",...a});return r?(0,t.jsxs)(o.m_,{children:[(0,t.jsx)(o.k$,{asChild:!0,children:d}),(0,t.jsx)(o.ZI,{side:n,children:(0,t.jsx)("p",{children:r})})]}):d}).displayName="EnhancedNodeHeaderAction";let u=(0,n.forwardRef)((e,l)=>{let{trigger:r,tooltip:n,tooltipSide:s="top",children:d,label:u,...h}=e,x=(0,t.jsxs)(c.rI,{children:[(0,t.jsx)(c.ty,{asChild:!0,children:(0,t.jsx)(i.gy,{ref:l,label:u,title:"",...h,children:null!=r?r:(0,t.jsx)(a.A,{})})}),(0,t.jsx)(c.SQ,{children:d})]});return n?(0,t.jsxs)(o.m_,{children:[(0,t.jsx)(o.k$,{asChild:!0,children:(0,t.jsx)("div",{children:x})}),(0,t.jsx)(o.ZI,{side:s,children:(0,t.jsx)("p",{children:n})})]}):x});u.displayName="EnhancedNodeHeaderMenuAction";let h=e=>{let{tooltip:l="Delete node",tooltipSide:r="top"}=e,a=(0,s.FC)(),{setNodes:c}=(0,s.VH)(),u=(0,n.useCallback)(()=>{c(e=>e.filter(e=>e.id!==a))},[a,c]);return(0,t.jsxs)(o.m_,{children:[(0,t.jsx)(o.k$,{asChild:!0,children:(0,t.jsx)(i.gy,{onClick:u,variant:"ghost",label:"Delete node",title:"",children:(0,t.jsx)(d.A,{})})}),(0,t.jsx)(o.ZI,{side:r,children:(0,t.jsx)("p",{children:l})})]})};h.displayName="EnhancedNodeHeaderDeleteAction"},65645:(e,l,r)=>{r.r(l),r.d(l,{default:()=>N});var t=r(95155),n=r(12115),s=r(15655),a=r(86681),d=r(6259),i=r(57526),c=r(85710),o=r(71847);let u=(0,o.A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),h=(0,o.A)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
1kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);var x=r(39867),m=r(48561),p=r(53643),f=r(93669),j=r(19552);let y=(0,n.memo)(e=>{var l;let{id:r,data:n,selected:o,isConnectable:y}=e;(0,f.U)(r);let N=j.f.enhancedHeaderNode;return(0,t.jsxs)(s.Y,{selected:o,className:"min-w-[200px] p-0",children:[m.r_.map(e=>(0,t.jsx)(p.o,{side:e,nodeId:r,nodeType:"enhancedHeaderNode",nodeData:n,isConnectable:y},e)),(0,t.jsxs)(a._M,{className:"px-3.5 pt-3.5 pb-2",children:[(0,t.jsx)(a.hU,{children:(e=>{switch(e){case"input":return(0,t.jsx)(c.A,{});case"processing":return(0,t.jsx)(u,{});case"ml":default:return(0,t.jsx)(h,{});case"output":return(0,t.jsx)(x.A,{})}})(n.nodeType)}),(0,t.jsx)(a.yl,{children:null!=(l=n.title)?l:N.title}),(0,t.jsxs)(a.vo,{children:[(0,t.jsxs)(i.hd,{label:"Node options",children:[(0,t.jsx)(d.lp,{variant:"section",children:"Node Actions"}),(0,t.jsx)(d._2,{children:"Edit Configuration"}),(0,t.jsx)(d._2,{children:"Duplicate Node"}),(0,t.jsx)(d._2,{children:"Export Settings"}),(0,t.jsx)(d.mB,{}),(0,t.jsx)(d._2,{children:"View Documentation"})]}),(0,t.jsx)(i.P0,{})]})]}),(0,t.jsx)("div",{className:"mt-2 px-3.5 pb-3.5",children:n.content?(0,t.jsx)("div",{className:"text-foreground text-sm",children:n.content}):(0,t.jsx)("div",{className:"text-muted-foreground text-sm",children:"Node content goes here"})})]})});y.displayName="EnhancedHeaderNode";let N=y},86681:(e,l,r)=>{r.d(l,{SM:()=>m,_M:()=>p,gy:()=>N,hU:()=>j,vo:()=>y,yl:()=>f});var t=r(95155),n=r(12115),s=r(22539),a=r(20017),d=(r(37135),r(93658)),i=r(64269),c=r(32467),o=r(3998),u=r(6259),h=r(85897),x=r(49551);function m(e){let{icon:l,badge:r,badgeBgColor:n="bg-red-50",badgeTextColor:s="text-red-700"}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)(j,{children:l}),r?(0,t.jsx)("span",{className:(0,i.cn)("rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase",n,s),children:r}):null]})}let p=(0,n.forwardRef)((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("header",{ref:l,...n,className:(0,i.cn)("flex items-center justify-between gap-2 px-3 py-2",r)})});p.displayName="NodeHeader";let f=(0,n.forwardRef)((e,l)=>{let{className:r,asChild:n,...s}=e,a=n?c.DX:"h3";return(0,t.jsx)(a,{ref:l,...s,className:(0,i.cn)("user-select-none flex-1 font-semibold",r)})});f.displayName="NodeHeaderTitle";let j=(0,n.forwardRef)((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("span",{ref:l,...n,className:(0,i.cn)(r,"[&>*]:size-5")})});j.displayName="NodeHeaderIcon";let y=(0,n.forwardRef)((e,l)=>{let{className:r,children:a,...c}=e,o=(0,s.FC)(),{user:u}=(0,d.Jd)(),m=(0,x.VA)(),p=(0,n.useMemo)(()=>{var e;return o?(null!=(e=m[o])?e:[]).filter(e=>e.userId!==(null==u?void 0:u.id)):[]},[o,m,null==u?void 0:u.id]),f=(0,n.useMemo)(()=>n.Children.toArray(a).filter(Boolean).length>0,[a]);return(0,t.jsxs)("div",{ref:l,...c,className:(0,i.cn)("ml-auto flex items-center gap-1 justify-self-end",r),children:[p.length>0?(0,t.jsxs)("div",{className:"nodrag flex items-center -space-x-2",children:[p.slice(0,3).map(e=>{var l;let r=(null==e||null==(l=e.name)?void 0:l.trim())?e.name:"Anonymous",n="string"==typeof e.avatar?e.avatar.trim():"",s=n.length>0;return(0,t.jsxs)(h.eu,{title:r,className:"border-background h-6 w-6 border-2",style:{borderColor:e.color},children:[s?(0,t.jsx)(h.BK,{src:n,alt:r,referrerPolicy:"no-referrer",className:"object-cover"}):null,(0,t.jsx)(h.q5,{delayMs:600,className:"text-[11px] font-semibold text-white",style:{backgroundColor:e.color},children:r.charAt(0).toUpperCase()})]},e.userId)}),p.length>3?(0,t.jsx)(h.eu,{title:"".concat(p.length-3," more"),className:"border-background h-6 w-6 border-2",children:(0,t.jsxs)(h.q5,{className:"bg-muted text-[10px] font-semibold",children:["+",p.length-3]})}):null]}):null,p.length>0&&f?(0,t.jsx)("div",{className:"bg-border mx-2 h-4 w-px"}):null,a]})});y.displayName="NodeHeaderActions";let N=(0,n.forwardRef)((e,l)=>{let{className:r,label:n,title:s,...a}=e;return(0,t.jsx)(o.$,{ref:l,variant:"ghost","aria-label":n,title:null!=s?s:n,className:(0,i.cn)(r,"nodrag size-6 p-1"),...a})});N.displayName="NodeHeaderAction",(0,n.forwardRef)((e,l)=>{let{trigger:r,children:n,...s}=e;return(0,t.jsxs)(u.rI,{children:[(0,t.jsx)(u.ty,{asChild:!0,children:(0,t.jsx)(N,{ref:l,...s,children:null!=r?r:(0,t.jsx)(a.A,{})})}),(0,t.jsx)(u.SQ,{children:n})]})}).displayName="NodeHeaderMenuAction"},93669:(e,l,r)=>{r.d(l,{U:()=>s});var t=r(12115),n=r(22539);let s=e=>{let l=(0,n.PF)();(0,t.useEffect)(()=>{let r=requestAnimationFrame(()=>{try{l(e)}catch(e){}});return()=>cancelAnimationFrame(r)},[e,l])}}}]);
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.