import{F as e,i}from"./declarationMapper-Lanf6XPr.js";import{b as a}from"./KHR_interactivity-BtMudStn.js";import{R as r}from"./index-CDrXokXW.js";import"./index-DWyDLubb.js";import"./objectModelMapping-CGWnurZP.js";class u extends a{constructor(t={}){super(t),this.config=t,this.config.startIndex=t.startIndex??new e(0),this.reset=this._registerSignalInput("reset"),this.maxExecutions=this.registerDataInput("maxExecutions",i),this.executionCount=this.registerDataOutput("executionCount",i,new e(0))}_execute(t,o){if(o===this.reset)this.executionCount.setValue(this.config.startIndex,t);else{const s=this.executionCount.getValue(t);s.value<this.maxExecutions.getValue(t).value&&(this.executionCount.setValue(new e(s.value+1),t),this.out._activateSignal(t))}}getClassName(){return"FlowGraphDoNBlock"}}r("FlowGraphDoNBlock",u);export{u as FlowGraphDoNBlock};
