System.register(["./p-24afd2bd.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.h;r=e.F}],execute:function(){var c=function(e,t){if(t==="No"){switch(e){case"Scheduled":{return{icon:"timer-2",color:"neutral-500, #6e7591",title:"Scheduled"}}case"ScheduledPreviouslyFailed":{return{icon:"timer-2",color:"danger-500, #cf445e",title:"Scheduled (previously failed)"}}case"Running":{return{icon:"loader-2",color:"neutral-500, #6e7591",title:"Running"}}case"RunningPreviouslyFailed":{return{icon:"loader-2",color:"danger-500, #cf445e",title:"Running (previously failed)"}}case"Succeeded":{return{icon:"checkbox-circle",color:"success-500, #3c8455",title:"Succeeded"}}case"Failed":{return{icon:"close-circle",color:"danger-500, #cf445e",title:"Failed"}}case"Cancelled":{return{icon:"forbid",color:"warn-600, #ba8925",title:"Cancelled"}}default:{return{icon:"refresh",color:"neutral-500, #6e7591",title:"Run node"}}}}switch(t){case"NeverExecuted":{return{icon:"indeterminate-circle",color:"neutral-500, #6e7591",title:"Not run yet"}}case"DependenciesFailed":{return{icon:"refresh",color:"danger-500, #cf445e",title:"Dependencies failed, re-run to update value"}}case"DependenciesChanged":{return{icon:"refresh",color:"warn-600, #ba8925",title:"Dependencies changed, re-run to update value"}}case"SemanticsChanged":{return{icon:"refresh",color:"warn-600, #ba8925",title:"Semantics changed, re-run to update value"}}}};var n=e("C",(function(e){var n;if(e.nodeKind==="Parameter"){return t("stencila-icon",{icon:"asterisk",iconStyle:null,color:"neutral-500, #6e7591",class:"executeStatus"})}if(!e.executeRequired||!e.executeStatus){return t(r,null)}var i=c(e.executeStatus,e.executeRequired);return t("stencila-tooltip",{text:i.title,slot:e.slot,position:"right-end"},t("stencila-icon",{icon:i.icon,color:i.color,class:"executeStatus executeRequired-"+e.executeRequired+" "+((n=e.executeStatus)===null||n===void 0?void 0:n.toLowerCase())}))}))}}}));
//# sourceMappingURL=p-4d97f6f6.system.js.map