@pipelab/ui 2.0.0-beta.30 → 2.0.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{C as e,_ as t,j as n,rt as r,st as i}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as a,G as o,H as s,M as c,W as l,_ as u,c as d,d as f,f as p,g as m,i as h,l as g,t as ee,u as _,v}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{E as te,G as ne,M as re,Q as ie,Z as ae,_ as y,_t as oe,m as b,u as se,v as x,xt as S,yn as ce,z as C}from"./useconfirm-CVHuarq9.js";import{t as le}from"./toast-B-okBVIr.js";import{o as w,t as ue}from"./Layout-E_D-zS3o.js";import{a as de,i as fe,n as pe,r as T,t as E}from"./tab-By9RqEeU.js";import{t as D}from"./tag-BnuenVCd.js";var me={class:`integrations-page`},he={class:`main-layout`},ge={class:`drawer`},_e={class:`drawer-header`},ve={class:`drawer-header-actions`},ye={class:`search-wrap px-3 py-2`},be={class:`plugin-list px-2 py-1 flex-grow-1 overflow-y-auto flex flex-column gap-1`},xe=[`onClick`],Se={class:`plugin-item-content`},Ce=[`src`],we={key:1,class:`pi pi-box plugin-icon-pi`},Te={class:`flex flex-column gap-0.5 min-w-0`},Ee={class:`plugin-label`},De={key:0,class:`text-[9px] opacity-50 font-mono leading-none`},Oe={key:0,class:`text-center py-6 text-[11px] opacity-50`},ke={class:`content-area`},Ae={key:0,class:`pane-content`},je={class:`pane-header flex justify-between items-start`},Me={class:`flex items-center gap-3`},Ne={class:`plugin-large-icon-wrapper`},Pe=[`src`],Fe={key:1,class:`pi pi-box plugin-large-icon-pi`},Ie={class:`flex items-center gap-2`},Le={class:`pane-title`},Re={class:`pane-desc`},ze={class:`flex items-center gap-3`},Be={class:`flex items-center gap-2 bg-surface-50 dark:bg-surface-950 border border-surface-200 dark:border-surface-800 rounded-lg px-2.5 py-1`},Ve={class:`exposed-section`},He={class:`nodes-grid`},Ue={class:`node-card-header flex items-start justify-between mb-2`},We={class:`flex items-center gap-2`},Ge={class:`node-icon-wrapper flex items-center justify-center`},Ke={class:`flex flex-column`},qe={class:`node-title font-bold text-xs`},Je={key:0,class:`node-version text-[9px] opacity-60`},Ye={class:`flex gap-1`},Xe={class:`node-description text-[10px] text-secondary`},Ze={class:`exposed-section`},Qe={class:`integrations-grid`},$e={class:`integration-card-header flex items-center gap-2 mb-3`},et={class:`integration-title font-bold text-xs`},tt={class:`integration-fields`},nt={class:`flex flex-column`},rt={class:`field-label text-[10px] font-medium`},it={key:1,class:`pane-content flex items-center justify-center text-center opacity-60`},at={class:`flex flex-column gap-3 py-2`},ot={class:`search-marketplace-wrap flex gap-2 w-full`},st={key:0,class:`flex justify-content-center items-center py-6`},ct={key:1,class:`marketplace-results max-h-[350px] overflow-y-auto pr-1`},lt={key:0,class:`text-center py-6 text-xs opacity-50`},ut={key:1,class:`plugins-list-group`},dt={class:`flex items-center gap-3`},ft={class:`flex flex-column`},pt={class:`flex items-center gap-2`},mt={class:`plugin-title font-bold text-xs`},ht={class:`plugin-description text-[10px] text-secondary mt-0.5`},gt={class:`flex items-center gap-2`},_t={key:0,class:`text-center py-8 text-xs opacity-50 border border-dashed rounded-lg`},vt={key:1,class:`plugins-list-group`},yt={class:`flex items-center gap-3`},bt={class:`plugin-icon-wrapper flex items-center justify-center`},xt=[`src`],St={key:1,class:`pi pi-box text-primary text-sm`},Ct={class:`flex flex-column`},wt={class:`plugin-title font-bold text-xs`},Tt={class:`plugin-description text-[10px] text-secondary mt-0.5`},Et={class:`flex items-center gap-2`},O=ee(v({__name:`integrations`,setup(ee){let v=ne(),O=ae(),k=ie(),A=se(),{settings:j}=S(v),{pluginDefinitions:M}=S(O),N=t(``),P=t(`blocks`),F=t(!1),I=t(``),L=t(``),R=t(!1),z=t([]),B=t({}),V=d(()=>j.value?.plugins||[]),H=d(()=>V.value.filter(e=>!K(e.name))),U=d(()=>{let e=I.value.trim().toLowerCase();return e?V.value.filter(t=>t.name.toLowerCase().includes(e)||q(t.name).toLowerCase().includes(e)):V.value}),W=d(()=>N.value&&V.value.find(e=>e.name===N.value)||null),G=d(()=>{let e=W.value;return e&&M.value.find(t=>t.packageName===e.name||t.id===e.name)||null});s(()=>W.value?.name,e=>{e&&(P.value=`blocks`)},{immediate:!0}),oe(L,async e=>{let t=e.trim();if(!t){z.value=[];return}R.value=!0;try{let e=await k.execute(`plugin:search`,{query:t});e.type===`success`&&(z.value=e.result.results)}catch(e){console.error(`Registry search error in Plugins:`,e)}finally{R.value=!1}},{debounce:500});let K=e=>e.startsWith(`@pipelab/`),q=e=>{let t=M.value.find(t=>t.packageName===e||t.id===e);if(t?.name)return t.name;if(e.startsWith(`@pipelab/plugin-`)){let t=e.replace(`@pipelab/plugin-`,``);return t.charAt(0).toUpperCase()+t.slice(1)}if(e.startsWith(`plugin-`)){let t=e.replace(`plugin-`,``);return t.charAt(0).toUpperCase()+t.slice(1)}return e},J=e=>{let t=e.replace(`@pipelab/plugin-`,``).replace(`plugin-`,``).toLowerCase();return M.value.find(n=>n.packageName?n.packageName.replace(`@pipelab/plugin-`,``).replace(`plugin-`,``).toLowerCase()===t||n.packageName===e||n.id===e:!1)?.icon||null},Y=e=>{let t=J(e);return t?.type===`image`?t.image:void 0},X=e=>M.value.find(t=>t.packageName===e||t.id===e)?.version,Z=e=>{if(!e||!e.icon)return``;let t=e.icon;return t.startsWith(`mdi-`)?`mdi ${t}`:t.startsWith(`pi-`)?`pi ${t}`:t},Dt=e=>{let t=e||`pi-box`;return t.startsWith(`mdi-`)?`mdi ${t}`:(t.startsWith(`pi-`),`pi ${t}`)},Ot=e=>e===`action`?`Action`:e===`expression`?`Expression`:e===`event`?`Event`:e.charAt(0).toUpperCase()+e.slice(1),kt=e=>e===`action`?`info`:e===`expression`?`warn`:e===`event`?`success`:`secondary`,At=e=>V.value.some(t=>t.name===e),Q=async t=>{let n=V.value.map(e=>e.name===t?{...e,enabled:!e.enabled}:e);await v.updateSettings({...e(j.value),plugins:n}),A.add({severity:`success`,summary:`Plugin updated`,detail:`${q(t)} is now ${n.find(e=>e.name===t)?.enabled?`enabled`:`disabled`}.`,life:3e3})},jt=async(t,n=``)=>{B.value[t]=!0;try{A.add({severity:`info`,summary:`Installing plugin`,detail:`Downloading and installing ${t}...`,life:3e3});let r=await k.execute(`plugin:install`,{packageName:t,version:`latest`});if(r.type===`success`){let r=[...V.value];r.some(e=>e.name===t)||(r.push({name:t,enabled:!0,description:n||`Community plugin`}),await v.updateSettings({...e(j.value),plugins:r})),A.add({severity:`success`,summary:`Plugin installed`,detail:`${t} has been installed successfully!`,life:3e3})}else A.add({severity:`error`,summary:`Installation failed`,detail:r.ipcError||`Could not install ${t}`,life:5e3})}catch(e){console.error(`Plugin installation failed:`,e),A.add({severity:`error`,summary:`Installation error`,detail:e.message||`Could not install ${t}`,life:5e3})}finally{B.value[t]=!1}},$=async t=>{B.value[t]=!0;try{A.add({severity:`info`,summary:`Uninstalling plugin`,detail:`Removing ${t}...`,life:3e3});let n=await k.execute(`plugin:uninstall`,{packageName:t});if(n.type===`success`){let n=V.value.filter(e=>e.name!==t);await v.updateSettings({...e(j.value),plugins:n}),N.value===t&&(N.value=``),A.add({severity:`success`,summary:`Plugin uninstalled`,detail:`${t} has been uninstalled!`,life:3e3})}else A.add({severity:`error`,summary:`Uninstall failed`,detail:n.ipcError||`Could not uninstall ${t}`,life:5e3})}catch(e){console.error(`Plugin uninstallation failed:`,e),A.add({severity:`error`,summary:`Uninstall error`,detail:e.message||`Could not uninstall ${t}`,life:5e3})}finally{B.value[t]=!1}};return(e,t)=>{let s=re;return a(),p(`div`,me,[u(n(le)),u(ue,null,{default:l(()=>[g(`div`,he,[g(`div`,ge,[g(`div`,_e,[t[10]||=g(`div`,{class:`drawer-header-left`},[g(`i`,{class:`mdi mdi-puzzle-outline mr-2`}),m(` Plugins `)],-1),g(`div`,ve,[o((a(),_(n(C),{text:``,size:`small`,class:`drawer-header-icon-btn`,onClick:t[0]||=e=>F.value=!0},{default:l(()=>t[9]||=[g(`i`,{class:`icon mdi mdi-earth fs-16`},null,-1)]),_:1})),[[s,`Explore Marketplace`,void 0,{top:!0}]])])]),g(`div`,ye,[u(n(x),{class:`w-full`},{default:l(()=>[u(n(y),{class:`pi pi-search text-xs`}),u(n(b),{modelValue:I.value,"onUpdate:modelValue":t[1]||=e=>I.value=e,placeholder:`Filter plugins...`,class:`w-full`,size:`small`},null,8,[`modelValue`])]),_:1})]),g(`div`,be,[(a(!0),p(h,null,c(U.value,e=>(a(),p(`div`,{key:e.name,class:r([`plugin-item`,{active:N.value===e.name}]),onClick:t=>N.value=e.name},[g(`div`,Se,[J(e.name)?(a(),p(h,{key:0},[J(e.name)?.type===`image`?(a(),p(`img`,{key:0,src:Y(e.name),class:`plugin-icon`},null,8,Ce)):(a(),p(`i`,{key:1,class:r([Z(J(e.name)),`plugin-icon-pi`])},null,2))],64)):(a(),p(`i`,we)),g(`div`,Te,[g(`span`,Ee,i(q(e.name)),1),X(e.name)?(a(),p(`span`,De,`v`+i(X(e.name)),1)):f(``,!0)])]),g(`span`,{class:r([`status-dot`,{enabled:e.enabled}])},null,2)],10,xe))),128)),U.value.length===0?(a(),p(`div`,Oe,` No plugins matching filter. `)):f(``,!0)])]),g(`div`,ke,[u(ce,{name:`fade-fast`,mode:`out-in`},{default:l(()=>[W.value?(a(),p(`div`,Ae,[g(`div`,je,[g(`div`,Me,[g(`div`,Ne,[J(W.value.name)?(a(),p(h,{key:0},[J(W.value.name)?.type===`image`?(a(),p(`img`,{key:0,src:Y(W.value.name),class:`plugin-large-icon`},null,8,Pe)):(a(),p(`i`,{key:1,class:r([Z(J(W.value.name)),`plugin-large-icon-pi`])},null,2))],64)):(a(),p(`i`,Fe))]),g(`div`,null,[g(`div`,Ie,[g(`h2`,Le,i(q(W.value.name)),1),G.value?.version?(a(),_(n(D),{key:0,severity:`secondary`,value:`v`+G.value.version,class:`text-[9px] font-mono py-0.5 px-1.5`},null,8,[`value`])):f(``,!0)]),g(`p`,Re,i(W.value.description||`No description provided.`),1)])]),g(`div`,ze,[g(`div`,Be,[t[11]||=g(`span`,{class:`text-[10px] font-bold uppercase tracking-wider text-muted-color opacity-75`},`Status`,-1),u(n(w),{"model-value":W.value.enabled,class:`small-toggle`,"onUpdate:modelValue":t[2]||=e=>Q(W.value.name)},null,8,[`model-value`])]),K(W.value.name)?f(``,!0):(a(),_(n(C),{key:0,label:`Uninstall`,severity:`danger`,outlined:``,size:`small`,icon:`pi pi-trash`,loading:B.value[W.value.name],onClick:t[3]||=e=>$(W.value.name)},null,8,[`loading`]))])]),u(n(de),{value:P.value,"onUpdate:value":t[4]||=e=>P.value=e,class:`w-full flex-grow-1 flex flex-column mt-4`},{default:l(()=>[u(n(pe),null,{default:l(()=>[G.value?.nodes?.length?(a(),_(n(E),{key:0,value:`blocks`},{default:l(()=>t[12]||=[g(`i`,{class:`pi pi-box mr-2 text-[11px]`},null,-1),m(`Blocks `)]),_:1})):f(``,!0),G.value?.integrations?.length?(a(),_(n(E),{key:1,value:`schema`},{default:l(()=>t[13]||=[g(`i`,{class:`pi pi-id-card mr-2 text-[11px]`},null,-1),m(`Setup `)]),_:1})):f(``,!0)]),_:1}),u(n(fe),{class:`flex-grow-1 overflow-y-auto mt-2`},{default:l(()=>[G.value?.nodes?.length?(a(),_(n(T),{key:0,value:`blocks`,class:`py-2`},{default:l(()=>[g(`div`,Ve,[t[14]||=g(`div`,{class:`section-header mb-4`},[g(`div`,{class:`flex flex-column gap-1`},[g(`h3`,{class:`section-title`},`Blocks`),g(`p`,{class:`section-desc`},`Automation blocks provided by this plugin.`)])],-1),g(`div`,He,[(a(!0),p(h,null,c(G.value.nodes,e=>(a(),p(`div`,{key:e.node.id,class:r([`node-card`,{deprecated:e.node.type===`action`&&e.node.deprecated}])},[g(`div`,Ue,[g(`div`,We,[g(`div`,Ge,[g(`i`,{class:r([Dt(e.node.icon),`node-icon`])},null,2)]),g(`div`,Ke,[g(`span`,qe,i(e.node.name),1),e.node.version?(a(),p(`span`,Je,`v`+i(e.node.version),1)):f(``,!0)])]),g(`div`,Ye,[e.node.type===`action`&&e.node.deprecated?o((a(),_(n(D),{key:0,value:`Deprecated`,severity:`danger`,class:`text-[9px] px-1 py-0.5 font-bold`},null,512)),[[s,e.node.deprecatedMessage||`This node is deprecated.`,void 0,{top:!0}]]):f(``,!0),e.node.advanced?(a(),_(n(D),{key:1,value:`Advanced`,severity:`secondary`,class:`text-[9px] px-1 py-0.5`})):f(``,!0),u(n(D),{value:Ot(e.node.type),severity:kt(e.node.type),class:`text-[9px] px-1.5 py-0.5`},null,8,[`value`,`severity`])])]),g(`p`,Xe,i(e.node.description||`No description available.`),1)],2))),128))])])]),_:1})):f(``,!0),G.value?.integrations?.length?(a(),_(n(T),{key:1,value:`schema`,class:`py-2`},{default:l(()=>[g(`div`,Ze,[t[17]||=g(`div`,{class:`section-header mb-4`},[g(`div`,{class:`flex flex-column gap-1`},[g(`h3`,{class:`section-title`},`Setup`),g(`p`,{class:`section-desc`},` Settings required to configure connection profiles for this plugin. `)])],-1),g(`div`,Qe,[(a(!0),p(h,null,c(G.value.integrations,e=>(a(),p(`div`,{key:e.name,class:`integration-card`},[g(`div`,$e,[t[15]||=g(`i`,{class:`pi pi-id-card text-primary text-sm`},null,-1),g(`span`,et,i(e.name),1)]),g(`div`,tt,[t[16]||=g(`div`,{class:`fields-header text-[9px] font-bold uppercase opacity-55 mb-1`},` Required Fields `,-1),(a(!0),p(h,null,c(e.fields,e=>(a(),p(`div`,{key:e.key,class:`field-row flex justify-between items-center py-1 border-b border-surface-200 dark:border-surface-800 last:border-0`},[g(`div`,nt,[g(`span`,rt,i(e.label),1)]),u(n(D),{value:e.type,severity:`secondary`,class:`text-[8px] uppercase px-1 py-0.5`},null,8,[`value`])]))),128))])]))),128))])])]),_:1})):f(``,!0)]),_:1})]),_:1},8,[`value`])])):(a(),p(`div`,it,t[18]||=[g(`div`,null,[g(`i`,{class:`pi pi-box text-3xl mb-3`}),g(`p`,{class:`text-sm`},`Select a plugin from the sidebar to inspect or configure.`)],-1)]))]),_:1})])])]),_:1}),u(n(te),{visible:F.value,"onUpdate:visible":t[8]||=e=>F.value=e,modal:``,header:`Explore Plugin Marketplace`,style:{width:`600px`,maxWidth:`90vw`}},{footer:l(()=>[u(n(C),{label:`Close`,size:`small`,severity:`secondary`,onClick:t[7]||=e=>F.value=!1})]),default:l(()=>[g(`div`,at,[g(`div`,ot,[u(n(x),{class:`flex-grow-1`},{default:l(()=>[u(n(y),{class:`pi pi-search text-xs`}),u(n(b),{modelValue:L.value,"onUpdate:modelValue":t[5]||=e=>L.value=e,placeholder:`Search NPM for community plugins (e.g. @pipelab/plugin-)...`,class:`w-full search-input`,size:`small`},null,8,[`modelValue`])]),_:1}),L.value?(a(),_(n(C),{key:0,icon:`pi pi-times`,severity:`secondary`,text:``,size:`small`,onClick:t[6]||=e=>L.value=``})):f(``,!0)]),R.value?(a(),p(`div`,st,t[19]||=[g(`i`,{class:`pi pi-spin pi-spinner text-primary text-xl mr-2`},null,-1),g(`span`,{class:`text-xs`},`Searching registry...`,-1)])):(a(),p(`div`,ct,[L.value?(a(),p(h,{key:0},[t[21]||=g(`h4`,{class:`text-xs font-bold opacity-60 mb-2 uppercase tracking-wider`},` Search Results `,-1),z.value.length===0?(a(),p(`div`,lt,` No community plugins found matching query. `)):(a(),p(`div`,ut,[(a(!0),p(h,null,c(z.value,e=>(a(),p(`div`,{key:e.name,class:`plugin-row flex items-center justify-between p-2`},[g(`div`,dt,[t[20]||=g(`div`,{class:`plugin-icon-wrapper flex items-center justify-center`},[g(`i`,{class:`pi pi-box text-primary text-sm`})],-1),g(`div`,ft,[g(`div`,pt,[g(`span`,mt,i(q(e.name)),1),At(e.name)?(a(),_(n(D),{key:0,severity:`success`,value:`Installed`,class:`text-[9px]`})):f(``,!0)]),g(`span`,ht,i(e.description||`No description available.`),1)])]),g(`div`,gt,[At(e.name)?(a(),_(n(C),{key:0,label:`Uninstall`,severity:`danger`,outlined:``,size:`small`,loading:B.value[e.name],onClick:t=>$(e.name)},null,8,[`loading`,`onClick`])):(a(),_(n(C),{key:1,label:`Install`,size:`small`,loading:B.value[e.name],onClick:t=>jt(e.name,e.description)},null,8,[`loading`,`onClick`]))])]))),128))]))],64)):(a(),p(h,{key:1},[t[22]||=g(`h4`,{class:`text-xs font-bold opacity-60 mb-2 uppercase tracking-wider`},` Installed Community Plugins `,-1),H.value.length===0?(a(),p(`div`,_t,` No community plugins installed. Search above to install new plugins. `)):(a(),p(`div`,vt,[(a(!0),p(h,null,c(H.value,e=>(a(),p(`div`,{key:e.name,class:`plugin-row flex items-center justify-between p-2`},[g(`div`,yt,[g(`div`,bt,[J(e.name)?(a(),p(h,{key:0},[J(e.name)?.type===`image`?(a(),p(`img`,{key:0,src:Y(e.name),class:`plugin-row-icon`},null,8,xt)):(a(),p(`i`,{key:1,class:r([Z(J(e.name)),`text-sm text-primary`])},null,2))],64)):(a(),p(`i`,St))]),g(`div`,Ct,[g(`span`,wt,i(q(e.name)),1),g(`span`,Tt,i(e.description||`No description available.`),1)])]),g(`div`,Et,[u(n(w),{"model-value":e.enabled,class:`scale-90`,"onUpdate:modelValue":t=>Q(e.name)},null,8,[`model-value`,`onUpdate:modelValue`]),o(u(n(C),{icon:`pi pi-trash`,severity:`danger`,text:``,rounded:``,size:`small`,loading:B.value[e.name],onClick:t=>$(e.name)},null,8,[`loading`,`onClick`]),[[s,`Uninstall`,void 0,{top:!0}]])])]))),128))]))],64))]))])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-53dbd9da`]]);export{O as default};
1
+ import{C as e,_ as t,j as n,rt as r,st as i}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as a,G as o,H as s,M as c,W as l,_ as u,c as d,d as f,f as p,g as m,i as h,l as g,t as ee,u as _,v}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{E as te,G as ne,M as re,Q as ie,Z as ae,_ as y,_t as oe,m as b,u as se,v as x,xt as S,yn as ce,z as C}from"./useconfirm-CVHuarq9.js";import{t as le}from"./toast-B-okBVIr.js";import{o as w,t as ue}from"./Layout-Bn2l-cPF.js";import{a as de,i as fe,n as pe,r as T,t as E}from"./tab-By9RqEeU.js";import{t as D}from"./tag-BnuenVCd.js";var me={class:`integrations-page`},he={class:`main-layout`},ge={class:`drawer`},_e={class:`drawer-header`},ve={class:`drawer-header-actions`},ye={class:`search-wrap px-3 py-2`},be={class:`plugin-list px-2 py-1 flex-grow-1 overflow-y-auto flex flex-column gap-1`},xe=[`onClick`],Se={class:`plugin-item-content`},Ce=[`src`],we={key:1,class:`pi pi-box plugin-icon-pi`},Te={class:`flex flex-column gap-0.5 min-w-0`},Ee={class:`plugin-label`},De={key:0,class:`text-[9px] opacity-50 font-mono leading-none`},Oe={key:0,class:`text-center py-6 text-[11px] opacity-50`},ke={class:`content-area`},Ae={key:0,class:`pane-content`},je={class:`pane-header flex justify-between items-start`},Me={class:`flex items-center gap-3`},Ne={class:`plugin-large-icon-wrapper`},Pe=[`src`],Fe={key:1,class:`pi pi-box plugin-large-icon-pi`},Ie={class:`flex items-center gap-2`},Le={class:`pane-title`},Re={class:`pane-desc`},ze={class:`flex items-center gap-3`},Be={class:`flex items-center gap-2 bg-surface-50 dark:bg-surface-950 border border-surface-200 dark:border-surface-800 rounded-lg px-2.5 py-1`},Ve={class:`exposed-section`},He={class:`nodes-grid`},Ue={class:`node-card-header flex items-start justify-between mb-2`},We={class:`flex items-center gap-2`},Ge={class:`node-icon-wrapper flex items-center justify-center`},Ke={class:`flex flex-column`},qe={class:`node-title font-bold text-xs`},Je={key:0,class:`node-version text-[9px] opacity-60`},Ye={class:`flex gap-1`},Xe={class:`node-description text-[10px] text-secondary`},Ze={class:`exposed-section`},Qe={class:`integrations-grid`},$e={class:`integration-card-header flex items-center gap-2 mb-3`},et={class:`integration-title font-bold text-xs`},tt={class:`integration-fields`},nt={class:`flex flex-column`},rt={class:`field-label text-[10px] font-medium`},it={key:1,class:`pane-content flex items-center justify-center text-center opacity-60`},at={class:`flex flex-column gap-3 py-2`},ot={class:`search-marketplace-wrap flex gap-2 w-full`},st={key:0,class:`flex justify-content-center items-center py-6`},ct={key:1,class:`marketplace-results max-h-[350px] overflow-y-auto pr-1`},lt={key:0,class:`text-center py-6 text-xs opacity-50`},ut={key:1,class:`plugins-list-group`},dt={class:`flex items-center gap-3`},ft={class:`flex flex-column`},pt={class:`flex items-center gap-2`},mt={class:`plugin-title font-bold text-xs`},ht={class:`plugin-description text-[10px] text-secondary mt-0.5`},gt={class:`flex items-center gap-2`},_t={key:0,class:`text-center py-8 text-xs opacity-50 border border-dashed rounded-lg`},vt={key:1,class:`plugins-list-group`},yt={class:`flex items-center gap-3`},bt={class:`plugin-icon-wrapper flex items-center justify-center`},xt=[`src`],St={key:1,class:`pi pi-box text-primary text-sm`},Ct={class:`flex flex-column`},wt={class:`plugin-title font-bold text-xs`},Tt={class:`plugin-description text-[10px] text-secondary mt-0.5`},Et={class:`flex items-center gap-2`},O=ee(v({__name:`integrations`,setup(ee){let v=ne(),O=ae(),k=ie(),A=se(),{settings:j}=S(v),{pluginDefinitions:M}=S(O),N=t(``),P=t(`blocks`),F=t(!1),I=t(``),L=t(``),R=t(!1),z=t([]),B=t({}),V=d(()=>j.value?.plugins||[]),H=d(()=>V.value.filter(e=>!K(e.name))),U=d(()=>{let e=I.value.trim().toLowerCase();return e?V.value.filter(t=>t.name.toLowerCase().includes(e)||q(t.name).toLowerCase().includes(e)):V.value}),W=d(()=>N.value&&V.value.find(e=>e.name===N.value)||null),G=d(()=>{let e=W.value;return e&&M.value.find(t=>t.packageName===e.name||t.id===e.name)||null});s(()=>W.value?.name,e=>{e&&(P.value=`blocks`)},{immediate:!0}),oe(L,async e=>{let t=e.trim();if(!t){z.value=[];return}R.value=!0;try{let e=await k.execute(`plugin:search`,{query:t});e.type===`success`&&(z.value=e.result.results)}catch(e){console.error(`Registry search error in Plugins:`,e)}finally{R.value=!1}},{debounce:500});let K=e=>e.startsWith(`@pipelab/`),q=e=>{let t=M.value.find(t=>t.packageName===e||t.id===e);if(t?.name)return t.name;if(e.startsWith(`@pipelab/plugin-`)){let t=e.replace(`@pipelab/plugin-`,``);return t.charAt(0).toUpperCase()+t.slice(1)}if(e.startsWith(`plugin-`)){let t=e.replace(`plugin-`,``);return t.charAt(0).toUpperCase()+t.slice(1)}return e},J=e=>{let t=e.replace(`@pipelab/plugin-`,``).replace(`plugin-`,``).toLowerCase();return M.value.find(n=>n.packageName?n.packageName.replace(`@pipelab/plugin-`,``).replace(`plugin-`,``).toLowerCase()===t||n.packageName===e||n.id===e:!1)?.icon||null},Y=e=>{let t=J(e);return t?.type===`image`?t.image:void 0},X=e=>M.value.find(t=>t.packageName===e||t.id===e)?.version,Z=e=>{if(!e||!e.icon)return``;let t=e.icon;return t.startsWith(`mdi-`)?`mdi ${t}`:t.startsWith(`pi-`)?`pi ${t}`:t},Dt=e=>{let t=e||`pi-box`;return t.startsWith(`mdi-`)?`mdi ${t}`:(t.startsWith(`pi-`),`pi ${t}`)},Ot=e=>e===`action`?`Action`:e===`expression`?`Expression`:e===`event`?`Event`:e.charAt(0).toUpperCase()+e.slice(1),kt=e=>e===`action`?`info`:e===`expression`?`warn`:e===`event`?`success`:`secondary`,At=e=>V.value.some(t=>t.name===e),Q=async t=>{let n=V.value.map(e=>e.name===t?{...e,enabled:!e.enabled}:e);await v.updateSettings({...e(j.value),plugins:n}),A.add({severity:`success`,summary:`Plugin updated`,detail:`${q(t)} is now ${n.find(e=>e.name===t)?.enabled?`enabled`:`disabled`}.`,life:3e3})},jt=async(t,n=``)=>{B.value[t]=!0;try{A.add({severity:`info`,summary:`Installing plugin`,detail:`Downloading and installing ${t}...`,life:3e3});let r=await k.execute(`plugin:install`,{packageName:t,version:`latest`});if(r.type===`success`){let r=[...V.value];r.some(e=>e.name===t)||(r.push({name:t,enabled:!0,description:n||`Community plugin`}),await v.updateSettings({...e(j.value),plugins:r})),A.add({severity:`success`,summary:`Plugin installed`,detail:`${t} has been installed successfully!`,life:3e3})}else A.add({severity:`error`,summary:`Installation failed`,detail:r.ipcError||`Could not install ${t}`,life:5e3})}catch(e){console.error(`Plugin installation failed:`,e),A.add({severity:`error`,summary:`Installation error`,detail:e.message||`Could not install ${t}`,life:5e3})}finally{B.value[t]=!1}},$=async t=>{B.value[t]=!0;try{A.add({severity:`info`,summary:`Uninstalling plugin`,detail:`Removing ${t}...`,life:3e3});let n=await k.execute(`plugin:uninstall`,{packageName:t});if(n.type===`success`){let n=V.value.filter(e=>e.name!==t);await v.updateSettings({...e(j.value),plugins:n}),N.value===t&&(N.value=``),A.add({severity:`success`,summary:`Plugin uninstalled`,detail:`${t} has been uninstalled!`,life:3e3})}else A.add({severity:`error`,summary:`Uninstall failed`,detail:n.ipcError||`Could not uninstall ${t}`,life:5e3})}catch(e){console.error(`Plugin uninstallation failed:`,e),A.add({severity:`error`,summary:`Uninstall error`,detail:e.message||`Could not uninstall ${t}`,life:5e3})}finally{B.value[t]=!1}};return(e,t)=>{let s=re;return a(),p(`div`,me,[u(n(le)),u(ue,null,{default:l(()=>[g(`div`,he,[g(`div`,ge,[g(`div`,_e,[t[10]||=g(`div`,{class:`drawer-header-left`},[g(`i`,{class:`mdi mdi-puzzle-outline mr-2`}),m(` Plugins `)],-1),g(`div`,ve,[o((a(),_(n(C),{text:``,size:`small`,class:`drawer-header-icon-btn`,onClick:t[0]||=e=>F.value=!0},{default:l(()=>t[9]||=[g(`i`,{class:`icon mdi mdi-earth fs-16`},null,-1)]),_:1})),[[s,`Explore Marketplace`,void 0,{top:!0}]])])]),g(`div`,ye,[u(n(x),{class:`w-full`},{default:l(()=>[u(n(y),{class:`pi pi-search text-xs`}),u(n(b),{modelValue:I.value,"onUpdate:modelValue":t[1]||=e=>I.value=e,placeholder:`Filter plugins...`,class:`w-full`,size:`small`},null,8,[`modelValue`])]),_:1})]),g(`div`,be,[(a(!0),p(h,null,c(U.value,e=>(a(),p(`div`,{key:e.name,class:r([`plugin-item`,{active:N.value===e.name}]),onClick:t=>N.value=e.name},[g(`div`,Se,[J(e.name)?(a(),p(h,{key:0},[J(e.name)?.type===`image`?(a(),p(`img`,{key:0,src:Y(e.name),class:`plugin-icon`},null,8,Ce)):(a(),p(`i`,{key:1,class:r([Z(J(e.name)),`plugin-icon-pi`])},null,2))],64)):(a(),p(`i`,we)),g(`div`,Te,[g(`span`,Ee,i(q(e.name)),1),X(e.name)?(a(),p(`span`,De,`v`+i(X(e.name)),1)):f(``,!0)])]),g(`span`,{class:r([`status-dot`,{enabled:e.enabled}])},null,2)],10,xe))),128)),U.value.length===0?(a(),p(`div`,Oe,` No plugins matching filter. `)):f(``,!0)])]),g(`div`,ke,[u(ce,{name:`fade-fast`,mode:`out-in`},{default:l(()=>[W.value?(a(),p(`div`,Ae,[g(`div`,je,[g(`div`,Me,[g(`div`,Ne,[J(W.value.name)?(a(),p(h,{key:0},[J(W.value.name)?.type===`image`?(a(),p(`img`,{key:0,src:Y(W.value.name),class:`plugin-large-icon`},null,8,Pe)):(a(),p(`i`,{key:1,class:r([Z(J(W.value.name)),`plugin-large-icon-pi`])},null,2))],64)):(a(),p(`i`,Fe))]),g(`div`,null,[g(`div`,Ie,[g(`h2`,Le,i(q(W.value.name)),1),G.value?.version?(a(),_(n(D),{key:0,severity:`secondary`,value:`v`+G.value.version,class:`text-[9px] font-mono py-0.5 px-1.5`},null,8,[`value`])):f(``,!0)]),g(`p`,Re,i(W.value.description||`No description provided.`),1)])]),g(`div`,ze,[g(`div`,Be,[t[11]||=g(`span`,{class:`text-[10px] font-bold uppercase tracking-wider text-muted-color opacity-75`},`Status`,-1),u(n(w),{"model-value":W.value.enabled,class:`small-toggle`,"onUpdate:modelValue":t[2]||=e=>Q(W.value.name)},null,8,[`model-value`])]),K(W.value.name)?f(``,!0):(a(),_(n(C),{key:0,label:`Uninstall`,severity:`danger`,outlined:``,size:`small`,icon:`pi pi-trash`,loading:B.value[W.value.name],onClick:t[3]||=e=>$(W.value.name)},null,8,[`loading`]))])]),u(n(de),{value:P.value,"onUpdate:value":t[4]||=e=>P.value=e,class:`w-full flex-grow-1 flex flex-column mt-4`},{default:l(()=>[u(n(pe),null,{default:l(()=>[G.value?.nodes?.length?(a(),_(n(E),{key:0,value:`blocks`},{default:l(()=>t[12]||=[g(`i`,{class:`pi pi-box mr-2 text-[11px]`},null,-1),m(`Blocks `)]),_:1})):f(``,!0),G.value?.integrations?.length?(a(),_(n(E),{key:1,value:`schema`},{default:l(()=>t[13]||=[g(`i`,{class:`pi pi-id-card mr-2 text-[11px]`},null,-1),m(`Setup `)]),_:1})):f(``,!0)]),_:1}),u(n(fe),{class:`flex-grow-1 overflow-y-auto mt-2`},{default:l(()=>[G.value?.nodes?.length?(a(),_(n(T),{key:0,value:`blocks`,class:`py-2`},{default:l(()=>[g(`div`,Ve,[t[14]||=g(`div`,{class:`section-header mb-4`},[g(`div`,{class:`flex flex-column gap-1`},[g(`h3`,{class:`section-title`},`Blocks`),g(`p`,{class:`section-desc`},`Automation blocks provided by this plugin.`)])],-1),g(`div`,He,[(a(!0),p(h,null,c(G.value.nodes,e=>(a(),p(`div`,{key:e.node.id,class:r([`node-card`,{deprecated:e.node.type===`action`&&e.node.deprecated}])},[g(`div`,Ue,[g(`div`,We,[g(`div`,Ge,[g(`i`,{class:r([Dt(e.node.icon),`node-icon`])},null,2)]),g(`div`,Ke,[g(`span`,qe,i(e.node.name),1),e.node.version?(a(),p(`span`,Je,`v`+i(e.node.version),1)):f(``,!0)])]),g(`div`,Ye,[e.node.type===`action`&&e.node.deprecated?o((a(),_(n(D),{key:0,value:`Deprecated`,severity:`danger`,class:`text-[9px] px-1 py-0.5 font-bold`},null,512)),[[s,e.node.deprecatedMessage||`This node is deprecated.`,void 0,{top:!0}]]):f(``,!0),e.node.advanced?(a(),_(n(D),{key:1,value:`Advanced`,severity:`secondary`,class:`text-[9px] px-1 py-0.5`})):f(``,!0),u(n(D),{value:Ot(e.node.type),severity:kt(e.node.type),class:`text-[9px] px-1.5 py-0.5`},null,8,[`value`,`severity`])])]),g(`p`,Xe,i(e.node.description||`No description available.`),1)],2))),128))])])]),_:1})):f(``,!0),G.value?.integrations?.length?(a(),_(n(T),{key:1,value:`schema`,class:`py-2`},{default:l(()=>[g(`div`,Ze,[t[17]||=g(`div`,{class:`section-header mb-4`},[g(`div`,{class:`flex flex-column gap-1`},[g(`h3`,{class:`section-title`},`Setup`),g(`p`,{class:`section-desc`},` Settings required to configure connection profiles for this plugin. `)])],-1),g(`div`,Qe,[(a(!0),p(h,null,c(G.value.integrations,e=>(a(),p(`div`,{key:e.name,class:`integration-card`},[g(`div`,$e,[t[15]||=g(`i`,{class:`pi pi-id-card text-primary text-sm`},null,-1),g(`span`,et,i(e.name),1)]),g(`div`,tt,[t[16]||=g(`div`,{class:`fields-header text-[9px] font-bold uppercase opacity-55 mb-1`},` Required Fields `,-1),(a(!0),p(h,null,c(e.fields,e=>(a(),p(`div`,{key:e.key,class:`field-row flex justify-between items-center py-1 border-b border-surface-200 dark:border-surface-800 last:border-0`},[g(`div`,nt,[g(`span`,rt,i(e.label),1)]),u(n(D),{value:e.type,severity:`secondary`,class:`text-[8px] uppercase px-1 py-0.5`},null,8,[`value`])]))),128))])]))),128))])])]),_:1})):f(``,!0)]),_:1})]),_:1},8,[`value`])])):(a(),p(`div`,it,t[18]||=[g(`div`,null,[g(`i`,{class:`pi pi-box text-3xl mb-3`}),g(`p`,{class:`text-sm`},`Select a plugin from the sidebar to inspect or configure.`)],-1)]))]),_:1})])])]),_:1}),u(n(te),{visible:F.value,"onUpdate:visible":t[8]||=e=>F.value=e,modal:``,header:`Explore Plugin Marketplace`,style:{width:`600px`,maxWidth:`90vw`}},{footer:l(()=>[u(n(C),{label:`Close`,size:`small`,severity:`secondary`,onClick:t[7]||=e=>F.value=!1})]),default:l(()=>[g(`div`,at,[g(`div`,ot,[u(n(x),{class:`flex-grow-1`},{default:l(()=>[u(n(y),{class:`pi pi-search text-xs`}),u(n(b),{modelValue:L.value,"onUpdate:modelValue":t[5]||=e=>L.value=e,placeholder:`Search NPM for community plugins (e.g. @pipelab/plugin-)...`,class:`w-full search-input`,size:`small`},null,8,[`modelValue`])]),_:1}),L.value?(a(),_(n(C),{key:0,icon:`pi pi-times`,severity:`secondary`,text:``,size:`small`,onClick:t[6]||=e=>L.value=``})):f(``,!0)]),R.value?(a(),p(`div`,st,t[19]||=[g(`i`,{class:`pi pi-spin pi-spinner text-primary text-xl mr-2`},null,-1),g(`span`,{class:`text-xs`},`Searching registry...`,-1)])):(a(),p(`div`,ct,[L.value?(a(),p(h,{key:0},[t[21]||=g(`h4`,{class:`text-xs font-bold opacity-60 mb-2 uppercase tracking-wider`},` Search Results `,-1),z.value.length===0?(a(),p(`div`,lt,` No community plugins found matching query. `)):(a(),p(`div`,ut,[(a(!0),p(h,null,c(z.value,e=>(a(),p(`div`,{key:e.name,class:`plugin-row flex items-center justify-between p-2`},[g(`div`,dt,[t[20]||=g(`div`,{class:`plugin-icon-wrapper flex items-center justify-center`},[g(`i`,{class:`pi pi-box text-primary text-sm`})],-1),g(`div`,ft,[g(`div`,pt,[g(`span`,mt,i(q(e.name)),1),At(e.name)?(a(),_(n(D),{key:0,severity:`success`,value:`Installed`,class:`text-[9px]`})):f(``,!0)]),g(`span`,ht,i(e.description||`No description available.`),1)])]),g(`div`,gt,[At(e.name)?(a(),_(n(C),{key:0,label:`Uninstall`,severity:`danger`,outlined:``,size:`small`,loading:B.value[e.name],onClick:t=>$(e.name)},null,8,[`loading`,`onClick`])):(a(),_(n(C),{key:1,label:`Install`,size:`small`,loading:B.value[e.name],onClick:t=>jt(e.name,e.description)},null,8,[`loading`,`onClick`]))])]))),128))]))],64)):(a(),p(h,{key:1},[t[22]||=g(`h4`,{class:`text-xs font-bold opacity-60 mb-2 uppercase tracking-wider`},` Installed Community Plugins `,-1),H.value.length===0?(a(),p(`div`,_t,` No community plugins installed. Search above to install new plugins. `)):(a(),p(`div`,vt,[(a(!0),p(h,null,c(H.value,e=>(a(),p(`div`,{key:e.name,class:`plugin-row flex items-center justify-between p-2`},[g(`div`,yt,[g(`div`,bt,[J(e.name)?(a(),p(h,{key:0},[J(e.name)?.type===`image`?(a(),p(`img`,{key:0,src:Y(e.name),class:`plugin-row-icon`},null,8,xt)):(a(),p(`i`,{key:1,class:r([Z(J(e.name)),`text-sm text-primary`])},null,2))],64)):(a(),p(`i`,St))]),g(`div`,Ct,[g(`span`,wt,i(q(e.name)),1),g(`span`,Tt,i(e.description||`No description available.`),1)])]),g(`div`,Et,[u(n(w),{"model-value":e.enabled,class:`scale-90`,"onUpdate:modelValue":t=>Q(e.name)},null,8,[`model-value`,`onUpdate:modelValue`]),o(u(n(C),{icon:`pi pi-trash`,severity:`danger`,text:``,rounded:``,size:`small`,loading:B.value[e.name],onClick:t=>$(e.name)},null,8,[`loading`,`onClick`]),[[s,`Uninstall`,void 0,{top:!0}]])])]))),128))]))],64))]))])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-53dbd9da`]]);export{O as default};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-DECur_0Z.js";import{E as t,_ as n,j as r,rt as i,st as a}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as o,C as s,G as c,H as l,M as u,U as d,W as f,_ as p,c as m,d as h,f as g,g as _,i as v,l as y,t as b,u as x,v as S,w as C}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{Ct as w,E as ee,G as te,K as ne,M as re,Q as ie,Z as ae,_ as oe,c as se,d as ce,h as T,i as le,m as ue,n as de,q as fe,tt as E,u as pe,v as me,vn as he,wn as ge,xt as _e,z as ve}from"./useconfirm-CVHuarq9.js";import{a as D,n as ye,r as be}from"./confirmationeventbus-CMZ3p-1D.js";import{i as xe,x as O}from"./src-CpumGx8C.js";import{t as Se}from"./checkbox-DYPui_je.js";import{n as Ce,t as we}from"./injection-keys-Bz1jHw01.js";import{n as Te,t as Ee}from"./Layout-E_D-zS3o.js";import{i as De,n as Oe,r as ke,t as Ae}from"./useTour-CnsmiyWR.js";import{t as je}from"./tag-BnuenVCd.js";var Me=e(((e,t)=>{function n(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function r(e,t){for(var n=``,r=0,i=-1,a=0,o,s=0;s<=e.length;++s){if(s<e.length)o=e.charCodeAt(s);else if(o===47)break;else o=47;if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf(`/`);if(c!==n.length-1){c===-1?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}}else if(n.length===2||n.length===1){n=``,r=0,i=s,a=0;continue}}t&&(n.length>0?n+=`/..`:n=`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a!==-1?++a:a=-1}return n}function i(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+e+r:r}var a={resolve:function(){for(var e=``,t=!1,i,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(i===void 0&&(i=process.cwd()),o=i),n(o),o.length!==0&&(e=o+`/`+e,t=o.charCodeAt(0)===47)}return e=r(e,!t),t?e.length>0?`/`+e:`/`:e.length>0?e:`.`},normalize:function(e){if(n(e),e.length===0)return`.`;var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=r(e,!t),e.length===0&&!t&&(e=`.`),e.length>0&&i&&(e+=`/`),t?`/`+e:e},isAbsolute:function(e){return n(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),r.length>0&&(e===void 0?e=r:e+=`/`+r)}return e===void 0?`.`:a.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t||(e=a.resolve(e),t=a.resolve(t),e===t))return``;for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var c=t.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(t.charCodeAt(s+d)===47)return t.slice(s+d+1);if(d===0)return t.slice(s+d)}else o>l&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==t.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=r+u+1;d<=i;++d)(d===i||e.charCodeAt(d)===47)&&(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(n(e),e.length===0)return`.`;for(var t=e.charCodeAt(0),r=t===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);n(e);var r=0,i=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return``;var s=t.length-1,c=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!a){r=o+1;break}}else c===-1&&(a=!1,c=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=c))}return r===i?i=c:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){r=o+1;break}}else i===-1&&(a=!1,i=o+1);return i===-1?``:e.slice(r,i)}},extname:function(e){n(e);for(var t=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),c===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===r+1?``:e.slice(t,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return i(`/`,e)},parse:function(e){n(e);var t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;var r=e.charCodeAt(0),i=r===47,a;i?(t.root=`/`,a=1):a=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=a;--u){if(r=e.charCodeAt(u),r===47){if(!l){s=u+1;break}continue}c===-1&&(l=!1,c=u+1),r===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(s===0&&i?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(s,c)):(s===0&&i?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};a.posix=a,t.exports=a}))(),Ne={class:`file-input`},Pe=b(S({__name:`FileInput`,props:{modelValue:{},defaultPath:{}},emits:[`update:model-value`],setup(e,{emit:n}){let{logger:i}=O(),a=ie(),s=e,c=n,{defaultPath:l}=t(s),u=e=>(0,Me.extname)(e)===`.plb`,d=async()=>{let e=await a.execute(`dialog:showSaveDialog`,{title:`Choose a new path`,properties:[`createDirectory`,`showOverwriteConfirmation`],filters:[{name:`Pipelab Project`,extensions:[`plb`]}],defaultPath:l.value});if(e.type===`error`)throw Error(e.ipcError);if(e.result.canceled||!e.result.filePath){i().error(`Save cancelled`);return}let t=e.result.filePath;u(t)||(t+=`.plb`),c(`update:model-value`,t)};return(e,t)=>(o(),g(`div`,Ne,[p(r(ue),{"model-value":e.modelValue,readonly:!0,class:`input`,placeholder:`Select a location`,onClick:d},null,8,[`model-value`])]))}}),[[`__scopeId`,`data-v-c0b02e10`]]),Fe=()=>{let{getPluginDefinition:e}=ae(),t={getPluginDefinition:e};function n(e){return Ie(e,t)}return{createPipeline:n}},Ie=(e,t)=>({getIcons:()=>{let n=[];if(!e?.content?.canvas?.blocks)return n;let r=e.content.canvas.blocks;for(let e of r){let r=t.getPluginDefinition(e.origin.pluginId);r&&r.icon&&n.push({origin:e.origin,...r.icon})}return n.length>4?n.slice(0,3).concat({type:`icon`,icon:`mdi-plus`,origin:{nodeId:`0`,pluginId:`0`}}):n}});function Le(){return fe.init(`phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql`,{api_host:`https://eu.i.posthog.com`}),{posthog:fe}}var Re=w.extend({name:`textarea`,style:`
1
+ import{t as e}from"./chunk-DECur_0Z.js";import{E as t,_ as n,j as r,rt as i,st as a}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as o,C as s,G as c,H as l,M as u,U as d,W as f,_ as p,c as m,d as h,f as g,g as _,i as v,l as y,t as b,u as x,v as S,w as C}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{Ct as w,E as ee,G as te,K as ne,M as re,Q as ie,Z as ae,_ as oe,c as se,d as ce,h as T,i as le,m as ue,n as de,q as fe,tt as E,u as pe,v as me,vn as he,wn as ge,xt as _e,z as ve}from"./useconfirm-CVHuarq9.js";import{a as D,n as ye,r as be}from"./confirmationeventbus-CMZ3p-1D.js";import{i as xe,x as O}from"./src-CpumGx8C.js";import{t as Se}from"./checkbox-DYPui_je.js";import{n as Ce,t as we}from"./injection-keys-Bz1jHw01.js";import{n as Te,t as Ee}from"./Layout-Bn2l-cPF.js";import{i as De,n as Oe,r as ke,t as Ae}from"./useTour-D6mduyXF.js";import{t as je}from"./tag-BnuenVCd.js";var Me=e(((e,t)=>{function n(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function r(e,t){for(var n=``,r=0,i=-1,a=0,o,s=0;s<=e.length;++s){if(s<e.length)o=e.charCodeAt(s);else if(o===47)break;else o=47;if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf(`/`);if(c!==n.length-1){c===-1?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}}else if(n.length===2||n.length===1){n=``,r=0,i=s,a=0;continue}}t&&(n.length>0?n+=`/..`:n=`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a!==-1?++a:a=-1}return n}function i(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+e+r:r}var a={resolve:function(){for(var e=``,t=!1,i,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(i===void 0&&(i=process.cwd()),o=i),n(o),o.length!==0&&(e=o+`/`+e,t=o.charCodeAt(0)===47)}return e=r(e,!t),t?e.length>0?`/`+e:`/`:e.length>0?e:`.`},normalize:function(e){if(n(e),e.length===0)return`.`;var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=r(e,!t),e.length===0&&!t&&(e=`.`),e.length>0&&i&&(e+=`/`),t?`/`+e:e},isAbsolute:function(e){return n(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),r.length>0&&(e===void 0?e=r:e+=`/`+r)}return e===void 0?`.`:a.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t||(e=a.resolve(e),t=a.resolve(t),e===t))return``;for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var c=t.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(t.charCodeAt(s+d)===47)return t.slice(s+d+1);if(d===0)return t.slice(s+d)}else o>l&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==t.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=r+u+1;d<=i;++d)(d===i||e.charCodeAt(d)===47)&&(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(n(e),e.length===0)return`.`;for(var t=e.charCodeAt(0),r=t===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);n(e);var r=0,i=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return``;var s=t.length-1,c=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!a){r=o+1;break}}else c===-1&&(a=!1,c=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=c))}return r===i?i=c:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){r=o+1;break}}else i===-1&&(a=!1,i=o+1);return i===-1?``:e.slice(r,i)}},extname:function(e){n(e);for(var t=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),c===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===r+1?``:e.slice(t,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return i(`/`,e)},parse:function(e){n(e);var t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;var r=e.charCodeAt(0),i=r===47,a;i?(t.root=`/`,a=1):a=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=a;--u){if(r=e.charCodeAt(u),r===47){if(!l){s=u+1;break}continue}c===-1&&(l=!1,c=u+1),r===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(s===0&&i?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(s,c)):(s===0&&i?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};a.posix=a,t.exports=a}))(),Ne={class:`file-input`},Pe=b(S({__name:`FileInput`,props:{modelValue:{},defaultPath:{}},emits:[`update:model-value`],setup(e,{emit:n}){let{logger:i}=O(),a=ie(),s=e,c=n,{defaultPath:l}=t(s),u=e=>(0,Me.extname)(e)===`.plb`,d=async()=>{let e=await a.execute(`dialog:showSaveDialog`,{title:`Choose a new path`,properties:[`createDirectory`,`showOverwriteConfirmation`],filters:[{name:`Pipelab Project`,extensions:[`plb`]}],defaultPath:l.value});if(e.type===`error`)throw Error(e.ipcError);if(e.result.canceled||!e.result.filePath){i().error(`Save cancelled`);return}let t=e.result.filePath;u(t)||(t+=`.plb`),c(`update:model-value`,t)};return(e,t)=>(o(),g(`div`,Ne,[p(r(ue),{"model-value":e.modelValue,readonly:!0,class:`input`,placeholder:`Select a location`,onClick:d},null,8,[`model-value`])]))}}),[[`__scopeId`,`data-v-c0b02e10`]]),Fe=()=>{let{getPluginDefinition:e}=ae(),t={getPluginDefinition:e};function n(e){return Ie(e,t)}return{createPipeline:n}},Ie=(e,t)=>({getIcons:()=>{let n=[];if(!e?.content?.canvas?.blocks)return n;let r=e.content.canvas.blocks;for(let e of r){let r=t.getPluginDefinition(e.origin.pluginId);r&&r.icon&&n.push({origin:e.origin,...r.icon})}return n.length>4?n.slice(0,3).concat({type:`icon`,icon:`mdi-plus`,origin:{nodeId:`0`,pluginId:`0`}}):n}});function Le(){return fe.init(`phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql`,{api_host:`https://eu.i.posthog.com`}),{posthog:fe}}var Re=w.extend({name:`textarea`,style:`
2
2
  .p-textarea {
3
3
  font-family: inherit;
4
4
  font-feature-settings: inherit;
@@ -1 +1 @@
1
- import{_ as e,j as t,st as n}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as r,M as i,W as a,_ as o,c as s,d as c,f as l,g as u,i as d,l as f,t as p,v as m}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{c as h,m as g,z as _}from"./useconfirm-CVHuarq9.js";import{t as v}from"./checkbox-DYPui_je.js";import{t as y}from"./radiobutton-DfHDgO--.js";import{t as b}from"./Layout-E_D-zS3o.js";import{i as x,n as S,r as C,t as w}from"./accordion-DV4bxs8-.js";var T={class:`simple-editor-page`},E={class:`p-4 h-full flex flex-column overflow-hidden`},D={class:`flex justify-content-between align-items-center mb-4`},ee={class:`flex-grow-1 overflow-y-auto`},O={class:`flex flex-column gap-3`},k={class:`flex flex-wrap gap-3`},A=[`for`],j={class:`flex gap-2`},M={class:`flex align-items-center gap-2`},N={key:0,class:`text-sm text-500 font-normal`},P={class:`flex align-items-center gap-2 mb-3`},F={key:0,class:`pl-4 border-left-1 border-300`},I={class:`flex flex-column gap-3`},L={class:`field-checkbox flex align-items-center gap-2`},R={key:0,class:`pl-4 mb-3`},z={class:`field-checkbox flex align-items-center gap-2`},B={key:1,class:`pl-4 mb-3`},V={class:`field-checkbox flex align-items-center gap-2`},H={key:2,class:`pl-4 mb-3`},U={class:`pt-4 flex justify-content-end`},W=p(m({__name:`simple-editor`,setup(p){let m=h(),W=[{label:`Construct 3 (HTML Export)`,value:`c3-html`},{label:`Construct 3 (NW.js)`,value:`c3-nwjs`},{label:`Godot`,value:`godot`},{label:`Plain HTML`,value:`html`}],G=e(`c3-html`),K=e(``),q=async()=>{console.log(`Open file dialog`)},J=s(()=>G.value!==`c3-nwjs`),Y=e(!0),X=e([]),Z=e(``),Q=e(``),$=e(``),te=()=>{console.log({source:{type:G.value,path:K.value},packaging:J.value?Y.value:!1,publishing:{targets:X.value,steam:Z.value,itch:Q.value,poki:$.value}})};return(e,s)=>{let p=b;return r(),l(`div`,T,[o(p,null,{default:a(()=>[f(`div`,E,[f(`div`,D,[s[10]||=f(`h1`,{class:`text-xl m-0 font-bold`},`Simplified Editor`,-1),o(t(_),{outlined:``,label:`Close`,icon:`mdi mdi-close`,size:`small`,onClick:s[0]||=e=>t(m).push(`/`)})]),f(`div`,ee,[o(t(w),{value:[`source`,`packaging`,`publishing`],multiple:``},{default:a(()=>[o(t(S),{value:`source`},{default:a(()=>[o(t(C),null,{default:a(()=>s[11]||=[u(`1. Source Selection`)]),_:1}),o(t(x),null,{default:a(()=>[f(`div`,O,[s[12]||=f(`label`,{class:`font-semibold`},`Project Type`,-1),f(`div`,k,[(r(),l(d,null,i(W,e=>f(`div`,{key:e.value,class:`flex align-items-center`},[o(t(y),{modelValue:G.value,"onUpdate:modelValue":s[1]||=e=>G.value=e,inputId:e.value,value:e.value},null,8,[`modelValue`,`inputId`,`value`]),f(`label`,{for:e.value,class:`ml-2 cursor-pointer`},n(e.label),9,A)])),64))]),s[13]||=f(`label`,{class:`font-semibold mt-2`},`Source Path`,-1),f(`div`,j,[o(t(g),{modelValue:K.value,"onUpdate:modelValue":s[2]||=e=>K.value=e,class:`flex-grow-1`,placeholder:`/path/to/project`},null,8,[`modelValue`]),o(t(_),{icon:`mdi mdi-folder-open`,outlined:``,onClick:q})])])]),_:1})]),_:1}),o(t(S),{value:`packaging`,disabled:!J.value},{default:a(()=>[o(t(C),null,{default:a(()=>[f(`div`,M,[s[14]||=f(`span`,null,`2. Packaging`,-1),J.value?c(``,!0):(r(),l(`span`,N,`(Not required for selected source)`))])]),_:1}),o(t(x),null,{default:a(()=>[f(`div`,P,[o(t(v),{modelValue:Y.value,"onUpdate:modelValue":s[3]||=e=>Y.value=e,binary:``,inputId:`doPackaging`},null,8,[`modelValue`]),s[15]||=f(`label`,{for:`doPackaging`,class:`cursor-pointer`},`Package project`,-1)]),Y.value?(r(),l(`div`,F,s[16]||=[f(`p`,{class:`text-sm text-600`},`Packaging options will appear here.`,-1)])):c(``,!0)]),_:1})]),_:1},8,[`disabled`]),o(t(S),{value:`publishing`},{default:a(()=>[o(t(C),null,{default:a(()=>s[17]||=[u(`3. Publishing`)]),_:1}),o(t(x),null,{default:a(()=>[f(`div`,I,[s[21]||=f(`label`,{class:`font-semibold`},`Destinations`,-1),f(`div`,L,[o(t(v),{modelValue:X.value,"onUpdate:modelValue":s[4]||=e=>X.value=e,value:`steam`,inputId:`steam`},null,8,[`modelValue`]),s[18]||=f(`label`,{for:`steam`,class:`cursor-pointer`},`Steam`,-1)]),X.value.includes(`steam`)?(r(),l(`div`,R,[o(t(g),{modelValue:Z.value,"onUpdate:modelValue":s[5]||=e=>Z.value=e,placeholder:`Steam App ID`,class:`w-full`},null,8,[`modelValue`])])):c(``,!0),f(`div`,z,[o(t(v),{modelValue:X.value,"onUpdate:modelValue":s[6]||=e=>X.value=e,value:`itch`,inputId:`itch`},null,8,[`modelValue`]),s[19]||=f(`label`,{for:`itch`,class:`cursor-pointer`},`Itch.io`,-1)]),X.value.includes(`itch`)?(r(),l(`div`,B,[o(t(g),{modelValue:Q.value,"onUpdate:modelValue":s[7]||=e=>Q.value=e,placeholder:`user/project`,class:`w-full`},null,8,[`modelValue`])])):c(``,!0),f(`div`,V,[o(t(v),{modelValue:X.value,"onUpdate:modelValue":s[8]||=e=>X.value=e,value:`poki`,inputId:`poki`},null,8,[`modelValue`]),s[20]||=f(`label`,{for:`poki`,class:`cursor-pointer`},`Poki`,-1)]),X.value.includes(`poki`)?(r(),l(`div`,H,[o(t(g),{modelValue:$.value,"onUpdate:modelValue":s[9]||=e=>$.value=e,placeholder:`Poki Game ID`,class:`w-full`},null,8,[`modelValue`])])):c(``,!0)])]),_:1})]),_:1})]),_:1})]),f(`div`,U,[o(t(_),{label:`Run Pipeline`,icon:`mdi mdi-play`,onClick:te})])])]),_:1})])}}}),[[`__scopeId`,`data-v-0f0393d0`]]);export{W as default};
1
+ import{_ as e,j as t,st as n}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as r,M as i,W as a,_ as o,c as s,d as c,f as l,g as u,i as d,l as f,t as p,v as m}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{c as h,m as g,z as _}from"./useconfirm-CVHuarq9.js";import{t as v}from"./checkbox-DYPui_je.js";import{t as y}from"./radiobutton-DfHDgO--.js";import{t as b}from"./Layout-Bn2l-cPF.js";import{i as x,n as S,r as C,t as w}from"./accordion-DV4bxs8-.js";var T={class:`simple-editor-page`},E={class:`p-4 h-full flex flex-column overflow-hidden`},D={class:`flex justify-content-between align-items-center mb-4`},ee={class:`flex-grow-1 overflow-y-auto`},O={class:`flex flex-column gap-3`},k={class:`flex flex-wrap gap-3`},A=[`for`],j={class:`flex gap-2`},M={class:`flex align-items-center gap-2`},N={key:0,class:`text-sm text-500 font-normal`},P={class:`flex align-items-center gap-2 mb-3`},F={key:0,class:`pl-4 border-left-1 border-300`},I={class:`flex flex-column gap-3`},L={class:`field-checkbox flex align-items-center gap-2`},R={key:0,class:`pl-4 mb-3`},z={class:`field-checkbox flex align-items-center gap-2`},B={key:1,class:`pl-4 mb-3`},V={class:`field-checkbox flex align-items-center gap-2`},H={key:2,class:`pl-4 mb-3`},U={class:`pt-4 flex justify-content-end`},W=p(m({__name:`simple-editor`,setup(p){let m=h(),W=[{label:`Construct 3 (HTML Export)`,value:`c3-html`},{label:`Construct 3 (NW.js)`,value:`c3-nwjs`},{label:`Godot`,value:`godot`},{label:`Plain HTML`,value:`html`}],G=e(`c3-html`),K=e(``),q=async()=>{console.log(`Open file dialog`)},J=s(()=>G.value!==`c3-nwjs`),Y=e(!0),X=e([]),Z=e(``),Q=e(``),$=e(``),te=()=>{console.log({source:{type:G.value,path:K.value},packaging:J.value?Y.value:!1,publishing:{targets:X.value,steam:Z.value,itch:Q.value,poki:$.value}})};return(e,s)=>{let p=b;return r(),l(`div`,T,[o(p,null,{default:a(()=>[f(`div`,E,[f(`div`,D,[s[10]||=f(`h1`,{class:`text-xl m-0 font-bold`},`Simplified Editor`,-1),o(t(_),{outlined:``,label:`Close`,icon:`mdi mdi-close`,size:`small`,onClick:s[0]||=e=>t(m).push(`/`)})]),f(`div`,ee,[o(t(w),{value:[`source`,`packaging`,`publishing`],multiple:``},{default:a(()=>[o(t(S),{value:`source`},{default:a(()=>[o(t(C),null,{default:a(()=>s[11]||=[u(`1. Source Selection`)]),_:1}),o(t(x),null,{default:a(()=>[f(`div`,O,[s[12]||=f(`label`,{class:`font-semibold`},`Project Type`,-1),f(`div`,k,[(r(),l(d,null,i(W,e=>f(`div`,{key:e.value,class:`flex align-items-center`},[o(t(y),{modelValue:G.value,"onUpdate:modelValue":s[1]||=e=>G.value=e,inputId:e.value,value:e.value},null,8,[`modelValue`,`inputId`,`value`]),f(`label`,{for:e.value,class:`ml-2 cursor-pointer`},n(e.label),9,A)])),64))]),s[13]||=f(`label`,{class:`font-semibold mt-2`},`Source Path`,-1),f(`div`,j,[o(t(g),{modelValue:K.value,"onUpdate:modelValue":s[2]||=e=>K.value=e,class:`flex-grow-1`,placeholder:`/path/to/project`},null,8,[`modelValue`]),o(t(_),{icon:`mdi mdi-folder-open`,outlined:``,onClick:q})])])]),_:1})]),_:1}),o(t(S),{value:`packaging`,disabled:!J.value},{default:a(()=>[o(t(C),null,{default:a(()=>[f(`div`,M,[s[14]||=f(`span`,null,`2. Packaging`,-1),J.value?c(``,!0):(r(),l(`span`,N,`(Not required for selected source)`))])]),_:1}),o(t(x),null,{default:a(()=>[f(`div`,P,[o(t(v),{modelValue:Y.value,"onUpdate:modelValue":s[3]||=e=>Y.value=e,binary:``,inputId:`doPackaging`},null,8,[`modelValue`]),s[15]||=f(`label`,{for:`doPackaging`,class:`cursor-pointer`},`Package project`,-1)]),Y.value?(r(),l(`div`,F,s[16]||=[f(`p`,{class:`text-sm text-600`},`Packaging options will appear here.`,-1)])):c(``,!0)]),_:1})]),_:1},8,[`disabled`]),o(t(S),{value:`publishing`},{default:a(()=>[o(t(C),null,{default:a(()=>s[17]||=[u(`3. Publishing`)]),_:1}),o(t(x),null,{default:a(()=>[f(`div`,I,[s[21]||=f(`label`,{class:`font-semibold`},`Destinations`,-1),f(`div`,L,[o(t(v),{modelValue:X.value,"onUpdate:modelValue":s[4]||=e=>X.value=e,value:`steam`,inputId:`steam`},null,8,[`modelValue`]),s[18]||=f(`label`,{for:`steam`,class:`cursor-pointer`},`Steam`,-1)]),X.value.includes(`steam`)?(r(),l(`div`,R,[o(t(g),{modelValue:Z.value,"onUpdate:modelValue":s[5]||=e=>Z.value=e,placeholder:`Steam App ID`,class:`w-full`},null,8,[`modelValue`])])):c(``,!0),f(`div`,z,[o(t(v),{modelValue:X.value,"onUpdate:modelValue":s[6]||=e=>X.value=e,value:`itch`,inputId:`itch`},null,8,[`modelValue`]),s[19]||=f(`label`,{for:`itch`,class:`cursor-pointer`},`Itch.io`,-1)]),X.value.includes(`itch`)?(r(),l(`div`,B,[o(t(g),{modelValue:Q.value,"onUpdate:modelValue":s[7]||=e=>Q.value=e,placeholder:`user/project`,class:`w-full`},null,8,[`modelValue`])])):c(``,!0),f(`div`,V,[o(t(v),{modelValue:X.value,"onUpdate:modelValue":s[8]||=e=>X.value=e,value:`poki`,inputId:`poki`},null,8,[`modelValue`]),s[20]||=f(`label`,{for:`poki`,class:`cursor-pointer`},`Poki`,-1)]),X.value.includes(`poki`)?(r(),l(`div`,H,[o(t(g),{modelValue:$.value,"onUpdate:modelValue":s[9]||=e=>$.value=e,placeholder:`Poki Game ID`,class:`w-full`},null,8,[`modelValue`])])):c(``,!0)])]),_:1})]),_:1})]),_:1})]),f(`div`,U,[o(t(_),{label:`Run Pipeline`,icon:`mdi mdi-play`,onClick:te})])])]),_:1})])}}}),[[`__scopeId`,`data-v-0f0393d0`]]);export{W as default};
@@ -1,4 +1,4 @@
1
- import{_ as e,at as t,j as n,rt as r,st as i}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as a,C as o,D as s,G as c,H as l,I as u,M as d,N as f,O as p,P as m,W as h,_ as g,c as _,d as v,f as y,g as b,i as x,l as S,m as C,t as w,u as T,v as E,w as D}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{Ct as O,E as k,G as A,K as j,M,St as N,n as ee,vn as te,wn as P,xt as F,z as I}from"./useconfirm-CVHuarq9.js";import{t as L}from"./confirmationeventbus-CMZ3p-1D.js";import{a as ne}from"./Layout-E_D-zS3o.js";import{a as re,i as ie,n as ae,r as oe,t as se}from"./tab-By9RqEeU.js";var ce=[`src`],le=E({__name:`PluginIcon`,props:{icon:{type:Object,required:!0},width:{type:[String,Number],required:!1,default:`40px`},color:{type:String,required:!1,default:`black`}},setup(e){return(n,i)=>e.icon?e.icon.type===`image`?(a(),y(`img`,{key:1,style:t({width:e.width}),src:e.icon.image},null,12,ce)):e.icon.type===`icon`?(a(),y(`i`,{key:2,style:t({"font-size":e.width,width:e.width,display:`flex`,color:e.color}),class:r({"node-icon":!0,mdi:e.icon.icon.startsWith(`mdi-`),pi:e.icon.icon.startsWith(`pi-`),[e.icon.icon]:!0})},null,6)):v(``,!0):(a(),y(`div`,{key:0,style:t({width:e.width})},null,4))}}),ue=O.extend({name:`progressbar`,style:`
1
+ import{_ as e,at as t,j as n,rt as r,st as i}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as a,C as o,D as s,G as c,H as l,I as u,M as d,N as f,O as p,P as m,W as h,_ as g,c as _,d as v,f as y,g as b,i as x,l as S,m as C,t as w,u as T,v as E,w as D}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{Ct as O,E as k,G as A,K as j,M,St as N,n as ee,vn as te,wn as P,xt as F,z as I}from"./useconfirm-CVHuarq9.js";import{t as L}from"./confirmationeventbus-CMZ3p-1D.js";import{a as ne}from"./Layout-Bn2l-cPF.js";import{a as re,i as ie,n as ae,r as oe,t as se}from"./tab-By9RqEeU.js";var ce=[`src`],le=E({__name:`PluginIcon`,props:{icon:{type:Object,required:!0},width:{type:[String,Number],required:!1,default:`40px`},color:{type:String,required:!1,default:`black`}},setup(e){return(n,i)=>e.icon?e.icon.type===`image`?(a(),y(`img`,{key:1,style:t({width:e.width}),src:e.icon.image},null,12,ce)):e.icon.type===`icon`?(a(),y(`i`,{key:2,style:t({"font-size":e.width,width:e.width,display:`flex`,color:e.color}),class:r({"node-icon":!0,mdi:e.icon.icon.startsWith(`mdi-`),pi:e.icon.icon.startsWith(`pi-`),[e.icon.icon]:!0})},null,6)):v(``,!0):(a(),y(`div`,{key:0,style:t({width:e.width})},null,4))}}),ue=O.extend({name:`progressbar`,style:`
2
2
  .p-progressbar {
3
3
  display: block;
4
4
  position: relative;
package/index.html CHANGED
@@ -26,7 +26,7 @@
26
26
  font-family: "Geist", serif;
27
27
  }
28
28
  </style>
29
- <script type="module" crossorigin src="/assets/index-Cy5OSUdJ.js"></script>
29
+ <script type="module" crossorigin src="/assets/index-ClonbNV6.js"></script>
30
30
  <link rel="modulepreload" crossorigin href="/assets/reactivity.esm-bundler-yhMxlGFU.js">
31
31
  <link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-DUvwmBqA.js">
32
32
  <link rel="modulepreload" crossorigin href="/assets/chunk-DECur_0Z.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/ui",
3
- "version": "2.0.0-beta.30",
3
+ "version": "2.0.0-beta.31",
4
4
  "description": "The ui assets for Pipelab",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "repository": {