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