1import{g as h,z as j,i as k,o as s,c as _,P as C,b as u,w as r,j as f,e as d,q as n,m as V,k as M,r as v,s as l,Q as z,J as D,_ as x,aO as E}from"./Dys0Pqea.js";import{_ as I}from"./Dm_v7A5n.js";import{l as N,u as O}from"./sOmJsgym.js";import{_ as S}from"./DlZjep9k.js";import{u as T}from"./T1ER2ApJ.js";const W={class:"scrollable-container custom-scroll custom-scroll-vertical relative overflow-y-auto"},A={key:0,class:"modal-content p-6 md:p-8 md:pt-4"},F={key:1,class:"modal-content-bottom border-t border-white/10 p-6 md:p-8"},L=h({__name:"BaseModal",props:{isDisplayed:{type:Boolean,default:!1},backdropClass:{default:""},closeOnEscape:{type:Boolean,default:!0},modalAlign:{default:"justify-center"},modalWidth:{default:"max-w-modal-default"}},emits:["close"],setup(e,{emit:i}){const a=e,b=i,c=j(a.isDisplayed),p=()=>{b("close")},m=(t=!0)=>{c.value=t};return k(()=>{a.closeOnEscape&&N("Escape",()=>{m(!1),p()})}),(t,o)=>{const g=M,$=D,B=z,y=I;return s(),_(C,{to:"body"},[u(y,{name:"fade",onBeforeEnter:o[1]||(o[1]=w=>m(!1)),onAfterEnter:o[2]||(o[2]=w=>m(!0)),onLeave:o[3]||(o[3]=w=>m(!1))},{default:r(()=>[e.isDisplayed?(s(),f("div",{key:0,class:n(["modal fixed inset-0 z-2000 flex h-screen w-full flex-col items-center overflow-hidden p-4 backdrop-blur-[10px]",e.modalAlign])},[d("div",{class:n(["modal-backdrop bg-shades-midnight-navy/50 fixed inset-0 z-0 h-screen w-full",e.backdropClass]),onClick:p},null,2),u(y,{name:"modal"},{default:r(()=>[V(c)?(s(),f("div",{key:0,class:n(["modal-body bg-shades-midnight-navy relative z-10 flex w-full flex-col rounded-2xl border border-white/15 pb-1",e.modalWidth])},[d("header",{class:n(["modal-header flex flex-row items-start p-6 md:px-8 md:py-6",{"justify-between":t.$slots.title,"justify-end":!t.$slots.title}])},[t.$slots.title?(s(),_(g,{key:0,variant:"text-xxl",class:"text-white"},{default:r(()=>[v(t.$slots,"title",{},void 0,!0)]),_:3})):l("",!0),u(B,{variant:"transparent",padding:"medium","aria-label":"Close modal",class:"modal-btn-close cursor-pointer",onClick:o[0]||(o[0]=w=>p())},{default:r(()=>[u($,{name:"ph:x",size:"24",class:"text-white",mode:"svg"})]),_:1})],2),d("div",W,[t.$slots.default?(s(),f("div",A,[v(t.$slots,"default",{},void 0,!0)])):l("",!0),t.$slots.bottom?(s(),f("footer",F,[v(t.$slots,"bottom",{},void 0,!0)])):l("",!0)])],2)):l("",!0)]),_:3})],2)):l("",!0)]),_:3})])}}}),P=x(L,[["__scopeId","data-v-b5f1478e"]]),R=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),q=["workflow","disableinteractivity","theme"],H=h({__name:"WorkflowViewer",props:{frameVariant:{default:"default"},isInteractive:{type:Boolean,default:!0},theme:{default:"light"},workflowData:{}},setup(e){const i=T();return E({script:[{src:"https://cdn.jsdelivr.net/npm/@webcomponents/[email protected]/webcomponents-loader.js",defer:!0,async:!0},{src:"https://www.unpkg.com/[email protected]/polyfill-support.js",defer:!0,async:!0},{src:"https://cdn.jsdelivr.net/npm/@n8n_io/n8n-demo-component@latest/n8n-demo.bundled.js",defer:!0,type:"module",async:!0}]}),k(()=>{O(window,"message",a=>{a?.data==='{"command":"openNDV"}'&&(i.value=!0),a?.data==='{"command":"closeNDV"}'&&(i.value=!1)})}),(a,b)=>{const c=S;return s(),_(c,{theme:e.frameVariant,class:n(["workflow-viewer",{"cursor-not-allowed":!e.isInteractive}])},{default:r(()=>[d("div",{class:n({"bg-white":e.theme==="light"})},[d("n8n-demo",{workflow:e.workflowData,collapseformobile:"false",clicktointeract:"true",hidecanvaserrors:"true",disableinteractivity:!e.isInteractive,theme:e.theme},null,8,q)],2)]),_:1},8,["theme","class"])}}}),X=x(H,[["__scopeId","data-v-de517b45"]]);export{R as B,P as _,X as a};
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.