import{D as v,_ as g}from"./DropdownMenu.90d44aab.js";import{L as w}from"./CircularLoading.283e573b.js";import{d as I,a as B,b as e,t as p,c as o,x as s,N as n,B as D,F as u,L as _,D as C,G as f,w as L,U as S,O as T,Q as N,q as R}from"./registerWidgets.7afd6438.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[l]="a960d260-4901-43ee-a0fd-9abf71f3f894",a._sentryDebugIdIdentifier="sentry-dbid-a960d260-4901-43ee-a0fd-9abf71f3f894")}catch{}})();const h=a=>(T("data-v-a0aa59f6"),a=a(),N(),a),U={key:1,class:"runtimes-container"},V={class:"header"},x={class:"title-wrapper"},E={class:"description"},F={key:0,class:"empty-list"},j=h(()=>s("img",{src:g},null,-1)),q={class:"empty-list-title"},z={class:"empty-list-description"},A={key:1},G={key:2},M={key:2,class:"video-section"},O=h(()=>s("h1",null,"See it in action",-1)),Q=["src"],$=I({__name:"RuntimeList",props:{loading:{type:Boolean},title:{},description:{},createButtonText:{},emptyTitle:{},videoUrl:{},table:{}},emits:["create"],setup(a,{emit:l}){async function d(){l("create")}return(t,H)=>{const k=B("router-link");return t.loading?(e(),p(w,{key:0,class:"loading-wrapper",justify:"center"})):(e(),o("div",U,[s("div",V,[s("div",x,[s("h1",null,n(t.title),1),s("p",E,n(t.description),1),s("button",{onClick:d},n(t.createButtonText),1)])]),t.table.rows.length===0?(e(),o("div",F,[j,s("div",q,n(t.emptyTitle),1),s("div",z,[D(t.$slots,"empty-description",{},void 0,!0)]),s("button",{onClick:d},n(t.createButtonText),1)])):(e(),o("table",A,[s("thead",null,[(e(!0),o(u,null,_(t.table.columns,(r,c)=>(e(),o("td",{key:c,class:"cell"},n(r.name),1))),128))]),(e(!0),o(u,null,_(t.table.rows,(r,c)=>{var m;return e(),o("tr",{key:c,class:f((m=r.classes)!=null?m:[])},[(e(!0),o(u,null,_(r.cells,(i,b)=>{var y;return e(),o("td",{key:b,class:f((y=i.classes)!=null?y:[])},[i.actions?(e(),p(v,{key:0,title:"Actions","highlight-last":!0,options:i.actions,payload:{key:r.key}},null,8,["options","payload"])):i.link?(e(),p(k,{key:1,to:i.link,class:"runtime-title"},{default:L(()=>[S(n(i.text),1)]),_:2},1032,["to"])):(e(),o("div",G,n(i.text),1))],2)}),128))],2)}),128))])),t.videoUrl?(e(),o("section",M,[O,s("iframe",{class:"runtimes-example-video",src:t.videoUrl,title:"runtimes example",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:""},null,8,Q)])):C("",!0)]))}}});const W=R($,[["__scopeId","data-v-a0aa59f6"]]);export{W as R};
//# sourceMappingURL=RuntimeList.9752755f.js.map
