{"ast":null,"code":"import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * Block that outputs a value of type ResultT, resulting of an operation with no inputs.\n */\nexport class FlowGraphConstantOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(richType, _operation, _className, config) {\n super(richType, config);\n this._operation = _operation;\n this._className = _className;\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();\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","FlowGraphConstantOperationBlock","constructor","richType","_operation","_className","config","_doOperation","_context","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js"],"sourcesContent":["import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * Block that outputs a value of type ResultT, resulting of an operation with no inputs.\n */\nexport class FlowGraphConstantOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(richType, _operation, _className, config) {\n super(richType, config);\n this._operation = _operation;\n this._className = _className;\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();\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,+BAA+B,SAASD,6BAA6B,CAAC;EAC/EE,WAAWA,CAACC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,MAAM,EAAE;IAClD,KAAK,CAACH,QAAQ,EAAEG,MAAM,CAAC;IACvB,IAAI,CAACF,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,UAAU,GAAGA,UAAU;EAChC;EACA;AACJ;AACA;AACA;AACA;EACIE,YAAYA,CAACC,QAAQ,EAAE;IACnB,OAAO,IAAI,CAACJ,UAAU,CAAC,CAAC;EAC5B;EACA;AACJ;AACA;AACA;EACIK,YAAYA,CAAA,EAAG;IACX,OAAO,IAAI,CAACJ,UAAU;EAC1B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}