import{K as u,_ as c,E as f,L as y}from"./TableView.vue_vue_type_script_setup_true_lang.c68c6430.js";import{d as b,r as g,b as n,eu as _,f as k,u as e,c as s,ew as p}from"./outputWidgets.cb8d4118.js";import{l as w}from"./fetch.a950ecae.js";import{a as v}from"./index.2a120f6d.js";import"./vuedraggable.umd.a5629b35.js";import"./workspaces.7c770739.js";import"./runnerData.c466048a.js";import"./url.f415825b.js";import"./record.3c2cc598.js";import"./pubsub.6650fe4e.js";import"./asyncComputed.602f821b.js";import"./scripts.9dad3b96.js";import"./envVars.0aa492ca.js";import"./api.30c67a00.js";import"./index.cf4c23b9.js";import"./metadata.77b205c1.js";import"./PhCheckCircle.vue.ed936d8d.js";import"./PhScroll.vue.eb4608a2.js";import"./PhWebhooksLogo.vue.e29c8a42.js";import"./ant-design.8a1ce750.js";import"./index.8c7f6a56.js";import"./Modal.6ccabc4f.js";import"./Text.9ccde808.js";import"./index.20961092.js";import"./index.6c0be9cd.js";import"./index.ca3b3ce7.js";import"./Paragraph.bf76481e.js";import"./index.b090e533.js";import"./Link.4ac04f66.js";import"./Title.0c6e5569.js";import"./CollapsePanel.620a6cf2.js";import"./index.36e8f249.js";import"./index.4a574083.js";import"./isNumeric.75337b1e.js";import"./Card.028b3323.js";import"./index.2e27f524.js";import"./TabPane.50eb1b71.js";import"./hasIn.9378fb46.js";import"./LoadingOutlined.f37c6bb1.js";import"./index.a552066b.js";import"./Form.ecb5a9ca.js";import"./string.cc9dacff.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]="ef749913-6dce-4312-9d2d-08f0fd030a49",o._sentryDebugIdIdentifier="sentry-dbid-ef749913-6dce-4312-9d2d-08f0fd030a49")}catch{}})();class h{constructor(t=w){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 K={style:{padding:"20px"}},ct=b({__name:"WorkflowThreads",setup(o){const t=new f,a=new h,m=new y("kanban"),d=["Kanban","Table view"],r=g("Kanban");return(R,i)=>(n(),_("div",K,[k(e(v),{value:r.value,"onUpdate:value":i[0]||(i[0]=l=>r.value=l),options:d,style:{"margin-bottom":"16px"}},null,8,["value"]),r.value==="Kanban"?(n(),s(u,{key:0,"kanban-repository":e(t),storage:e(m),"stage-run-repository":e(a)},null,8,["kanban-repository","storage","stage-run-repository"])):p("",!0),r.value==="Table view"?(n(),s(c,{key:1,"kanban-repository":e(t)},null,8,["kanban-repository"])):p("",!0)]))}});export{ct as default};
//# sourceMappingURL=WorkflowThreads.80d80588.js.map
