import{C as u}from"./ContentLayout.8dd7f370.js";import{A as l,K as y,_ as k,E as g}from"./TableView.vue_vue_type_script_setup_true_lang.86522041.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,ex as c}from"./outputWidgets.a321903e.js";import{l as v}from"./fetch.bf5f2911.js";import{A as b,T}from"./TabPane.5148c0d9.js";import"./Card.82090499.js";import"./vuedraggable.umd.88ff7d0e.js";import"./workspaces.d8023641.js";import"./runnerData.60d212c9.js";import"./url.d108fea5.js";import"./record.d39119c8.js";import"./pubsub.df0290b2.js";import"./asyncComputed.78ec0807.js";import"./scripts.9d09e542.js";import"./envVars.64402d99.js";import"./api.5deaa555.js";import"./metadata.8181e5a8.js";import"./PhCheckCircle.vue.0b1fe5c6.js";import"./PhScroll.vue.50afd9af.js";import"./PhWebhooksLogo.vue.bfa4bf4f.js";import"./ant-design.d41464a5.js";import"./index.f18b9a75.js";import"./Modal.bcb9f272.js";import"./Text.b25e1b1d.js";import"./index.fd9a3d7c.js";import"./index.211632ef.js";import"./index.810351aa.js";import"./Paragraph.53f5a9bc.js";import"./index.578f39e5.js";import"./Link.6da229b1.js";import"./Title.e1cf3e99.js";import"./index.95f88098.js";import"./CollapsePanel.b9b71372.js";import"./index.6948059c.js";import"./index.d69cfe24.js";import"./isNumeric.75337b1e.js";import"./LoadingOutlined.b4261b29.js";import"./index.0c289612.js";import"./Form.e0cc6e8e.js";import"./hasIn.62bbbac0.js";import"./string.4736890d.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]="51bcce74-1750-4cbc-b4fd-48c7f795a0cc",o._sentryDebugIdIdentifier="sentry-dbid-51bcce74-1750-4cbc-b4fd-48c7f795a0cc")}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,d=new h(l,"kanban-selected-stages"),r=w("kanban");return(S,p)=>(n(),i(u,{"full-width":""},{default:m(()=>[s(e(T),{activeKey:r.value,"onUpdate:activeKey":p[0]||(p[0]=f=>r.value=f)},{default:m(()=>[s(e(b),{key:"kanban",tab:"Kanban View"}),s(e(b),{key:"table",tab:"Table View"})]),_:1},8,["activeKey"]),r.value==="kanban"?(n(),i(y,{key:0,"kanban-repository":e(t),"kanban-stages-storage":e(d),"stage-run-repository":e(a)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):c("",!0),r.value==="table"?(n(),i(k,{key:1,"kanban-repository":e(t)},null,8,["kanban-repository"])):c("",!0)]),_:1}))}});export{ft as default};
//# sourceMappingURL=WorkflowThreads.a70010b0.js.map
