import{C as f}from"./ContentLayout.e6c532b6.js";import{A as l,K as y,_ as k,E as g}from"./TableView.vue_vue_type_script_setup_true_lang.93aa6776.js";import{d as _,r as w,b as n,c as i,w as m,L as h,f as s,u as e,ey as b}from"./outputWidgets.eb498848.js";import{l as v}from"./fetch.fcae2051.js";import{A as d,T}from"./TabPane.73c86943.js";import"./Card.70a00c39.js";import"./vuedraggable.umd.398c0f07.js";import"./workspaces.04f3ac75.js";import"./runnerData.c01bfcd7.js";import"./url.1d686ce1.js";import"./record.7cc6fca0.js";import"./pubsub.1ca1fb40.js";import"./asyncComputed.6b2a5298.js";import"./scripts.359c9293.js";import"./envVars.a4215f23.js";import"./api.bd012050.js";import"./metadata.a6b955d8.js";import"./PhCheckCircle.vue.1326e657.js";import"./PhScroll.vue.4a38c5cc.js";import"./PhWebhooksLogo.vue.2e5fb5d0.js";import"./ant-design.202cf9c9.js";import"./index.052e9e26.js";import"./Modal.19adabd3.js";import"./Text.c3630863.js";import"./Base.60455d70.js";import"./index.60acdd5f.js";import"./index.98ba73a6.js";import"./index.0ba4493c.js";import"./Paragraph.82d8120c.js";import"./index.9769729d.js";import"./Link.32e09244.js";import"./Title.ef0a0830.js";import"./index.848452e5.js";import"./CollapsePanel.0c6453f7.js";import"./index.23dbc6cf.js";import"./index.698da965.js";import"./isNumeric.75337b1e.js";import"./LoadingOutlined.b83eebe6.js";import"./index.672ac057.js";import"./Form.bd9a7b94.js";import"./hasIn.ceb11556.js";import"./string.b8fb39c3.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="0e547565-9088-4d26-b248-56fbb9489964",o._sentryDebugIdIdentifier="sentry-dbid-0e547565-9088-4d26-b248-56fbb9489964")}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 ft=_({__name:"WorkflowThreads",setup(o){const t=new g,a=new K,u=new h(l,"kanban-selected-stages"),r=w("kanban");return(S,p)=>(n(),i(f,{"full-width":""},{default:m(()=>[s(e(T),{activeKey:r.value,"onUpdate:activeKey":p[0]||(p[0]=c=>r.value=c)},{default:m(()=>[s(e(d),{key:"kanban",tab:"Kanban View"}),s(e(d),{key:"table",tab:"Table View"})]),_:1},8,["activeKey"]),r.value==="kanban"?(n(),i(y,{key:0,"kanban-repository":e(t),"kanban-stages-storage":e(u),"stage-run-repository":e(a)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):b("",!0),r.value==="table"?(n(),i(k,{key:1,"kanban-repository":e(t)},null,8,["kanban-repository"])):b("",!0)]),_:1}))}});export{ft as default};
//# sourceMappingURL=WorkflowThreads.4537316c.js.map
