{"ast":null,"code":"import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * The base block for all ternary operation blocks.\n */\nexport class FlowGraphTernaryOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(t1Type, t2Type, t3Type, resultRichType, _operation, _className, config) {\n super(resultRichType, config);\n this._operation = _operation;\n this._className = _className;\n this.a = this.registerDataInput(\"a\", t1Type);\n this.b = this.registerDataInput(\"b\", t2Type);\n this.c = this.registerDataInput(\"c\", t3Type);\n }\n /**\n * the operation performed by this block\n * @param context the graph context\n * @returns the result of the operation\n */\n _doOperation(context) {\n return this._operation(this.a.getValue(context), this.b.getValue(context), this.c.getValue(context));\n }\n /**\n * Gets the class name of this block\n * @returns the class name\n */\n getClassName() {\n return this._className;\n }\n}","map":{"version":3,"names":["FlowGraphCachedOperationBlock","FlowGraphTernaryOperationBlock","constructor","t1Type","t2Type","t3Type","resultRichType","_operation","_className","config","a","registerDataInput","b","c","_doOperation","context","getValue","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js"],"sourcesContent":["import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * The base block for all ternary operation blocks.\n */\nexport class FlowGraphTernaryOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(t1Type, t2Type, t3Type, resultRichType, _operation, _className, config) {\n super(resultRichType, config);\n this._operation = _operation;\n this._className = _className;\n this.a = this.registerDataInput(\"a\", t1Type);\n this.b = this.registerDataInput(\"b\", t2Type);\n this.c = this.registerDataInput(\"c\", t3Type);\n }\n /**\n * the operation performed by this block\n * @param context the graph context\n * @returns the result of the operation\n */\n _doOperation(context) {\n return this._operation(this.a.getValue(context), this.b.getValue(context), this.c.getValue(context));\n }\n /**\n * Gets the class name of this block\n * @returns the class name\n */\n getClassName() {\n return this._className;\n }\n}\n"],"mappings":"AAAA,SAASA,6BAA6B,QAAQ,oCAAoC;AAClF;AACA;AACA;AACA;AACA,OAAO,MAAMC,8BAA8B,SAASD,6BAA6B,CAAC;EAC9EE,WAAWA,CAACC,MAAM,EAAEC,MAAM,EAAEC,MAAM,EAAEC,cAAc,EAAEC,UAAU,EAAEC,UAAU,EAAEC,MAAM,EAAE;IAChF,KAAK,CAACH,cAAc,EAAEG,MAAM,CAAC;IAC7B,IAAI,CAACF,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACE,CAAC,GAAG,IAAI,CAACC,iBAAiB,CAAC,GAAG,EAAER,MAAM,CAAC;IAC5C,IAAI,CAACS,CAAC,GAAG,IAAI,CAACD,iBAAiB,CAAC,GAAG,EAAEP,MAAM,CAAC;IAC5C,IAAI,CAACS,CAAC,GAAG,IAAI,CAACF,iBAAiB,CAAC,GAAG,EAAEN,MAAM,CAAC;EAChD;EACA;AACJ;AACA;AACA;AACA;EACIS,YAAYA,CAACC,OAAO,EAAE;IAClB,OAAO,IAAI,CAACR,UAAU,CAAC,IAAI,CAACG,CAAC,CAACM,QAAQ,CAACD,OAAO,CAAC,EAAE,IAAI,CAACH,CAAC,CAACI,QAAQ,CAACD,OAAO,CAAC,EAAE,IAAI,CAACF,CAAC,CAACG,QAAQ,CAACD,OAAO,CAAC,CAAC;EACxG;EACA;AACJ;AACA;AACA;EACIE,YAAYA,CAAA,EAAG;IACX,OAAO,IAAI,CAACT,UAAU;EAC1B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}