Object.defineProperty(exports,"__esModule",{value:!0}),exports.CGGetComponentbyType=void 0;let BaseNode_1=require("../Utils/BaseNode");class CGGetComponentbyType extends BaseNode_1.BaseNode{constructor(){super()}getOutput(e){var t=this.inputs[0]();return null!=t&&this.valueType?"JSScriptComponent"===this.valueType&&this.extraType?t.getComponents("JSScriptComponent").find(e=>(null==(e=null==(e=e.getScript())?void 0:e.ref)?void 0:e.extraType)===this.extraType):t.getComponent(this.valueType):null}}exports.CGGetComponentbyType=CGGetComponentbyType;