import{C as u}from"./ContentLayout.fb9ec5fe.js";import{A as l,K as y,_ as k,E as g}from"./TableView.vue_vue_type_script_setup_true_lang.3ab66d14.js";import{d as _,r as w,b as n,c as i,w as m,L as h,f as s,u as o,ey as f}from"./outputWidgets.7dd23d3d.js";import{l as v}from"./fetch.55a475bd.js";import{A as c,T}from"./TabPane.d692f77b.js";import"./Card.fee12f7e.js";import"./vuedraggable.umd.9e3b6699.js";import"./workspaces.299c954e.js";import"./runnerData.13e158ee.js";import"./url.6301f7e9.js";import"./record.4544f931.js";import"./pubsub.692bcdfa.js";import"./asyncComputed.8f047c40.js";import"./scripts.20bb39cb.js";import"./envVars.edb75e83.js";import"./api.9b0a26a8.js";import"./metadata.306bd23a.js";import"./PhCheckCircle.vue.6ee8bb44.js";import"./PhScroll.vue.18efaca2.js";import"./PhWebhooksLogo.vue.67e83944.js";import"./ant-design.410c5d74.js";import"./index.667384b8.js";import"./Modal.5fb5fcda.js";import"./Text.8f0caa1d.js";import"./Base.4bf9624b.js";import"./index.8d63ab0d.js";import"./index.a5cb16ca.js";import"./index.bda542d5.js";import"./Paragraph.7df229fc.js";import"./index.63d9c692.js";import"./Link.ffd51525.js";import"./Title.0952eb37.js";import"./index.90ad5190.js";import"./CollapsePanel.c7d8ef37.js";import"./index.42ade5ee.js";import"./index.7c32ff54.js";import"./isNumeric.75337b1e.js";import"./LoadingOutlined.bc742123.js";import"./index.063cef17.js";import"./Form.9f41d3b4.js";import"./hasIn.7d5dcda7.js";import"./string.8d4f9524.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="28bf71c9-ffc9-4207-89fc-1411af0269fd",e._sentryDebugIdIdentifier="sentry-dbid-28bf71c9-ffc9-4207-89fc-1411af0269fd")}catch{}})();class K{constructor(t=v){this.fetch=t}async fork(t){return(await this.fetch("/_editor/api/stage_runs/fork",{method:"POST",body:JSON.stringify({stage_run_id:t}),headers:{"Content-Type":"application/json"}})).json()}}const ut=_({__name:"WorkflowThreads",setup(e){const t=new g,a=new K,b=new h(l,"kanban-selected-stages"),r=w("kanban");return(S,p)=>(n(),i(u,{"full-width":""},{default:m(()=>[s(o(T),{activeKey:r.value,"onUpdate:activeKey":p[0]||(p[0]=d=>r.value=d)},{default:m(()=>[s(o(c),{key:"kanban",tab:"Kanban View"}),s(o(c),{key:"table",tab:"Table View"})]),_:1},8,["activeKey"]),r.value==="kanban"?(n(),i(y,{key:0,"kanban-repository":o(t),"kanban-stages-storage":o(b),"stage-run-repository":o(a)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):f("",!0),r.value==="table"?(n(),i(k,{key:1,"kanban-repository":o(t)},null,8,["kanban-repository"])):f("",!0)]),_:1}))}});export{ut as default};
//# sourceMappingURL=WorkflowThreads.58b2fb6e.js.map
